Skip to content

Commit 37cece4

Browse files
committed
Add comment to reset GL error state call
1 parent 63c5364 commit 37cece4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PluginSource/source/RenderAPI_OpenGLCoreES.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ static GLuint CreateShader(GLenum type, const char* sourceText)
137137

138138
void RenderAPI_OpenGLCoreES::CreateResources()
139139
{
140+
// Make sure that there are no GL error flags set before creating resources
140141
while (glGetError() != GL_NO_ERROR) {}
141142

142143
// Create shaders

0 commit comments

Comments
 (0)