Skip to content

Commit 615c810

Browse files
committed
More GL enum color format fixes
1 parent 9152ed3 commit 615c810

File tree

2 files changed

+129
-115
lines changed

2 files changed

+129
-115
lines changed

source/Nabla/COpenGLDriver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ class COpenGLDriver final : public CNullDriver, public COpenGLExtensionHandler
453453
default:
454454
{
455455
GLint res = GL_FALSE;
456-
extGlGetInternalformativ(GL_TEXTURE_2D, getSizedOpenGLFormatFromOurFormat(_fmt), GL_COLOR_RENDERABLE, sizeof(res), &res);
456+
extGlGetInternalformativ(GL_TEXTURE_2D, getSizedOpenGLFormatFromOurFormat(_fmt), GL_COLOR_RENDERABLE, 1, &res);
457457
return res==GL_TRUE;
458458
}
459459
}

0 commit comments

Comments
 (0)