From ef01205fb65a7f1ddad59f961a1568b62ef21b38 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Sun, 19 Dec 2021 02:33:55 +0100 Subject: [PATCH] Fixed missing argument --- core/src/gui/widgets/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/gui/widgets/image.cpp b/core/src/gui/widgets/image.cpp index a1f8cbf..0b6211a 100644 --- a/core/src/gui/widgets/image.cpp +++ b/core/src/gui/widgets/image.cpp @@ -61,6 +61,6 @@ namespace ImGui { glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glPixelStorei(GL_UNPACK_ROW_LENGTH, 0); - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, _width, _height, 0, GL_RGBA, GL_UNSIGNED_BYTE, activeBuffer); + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, _width, _height, 0, _format, GL_UNSIGNED_BYTE, activeBuffer); } } \ No newline at end of file