Skip to content

Commit

Permalink
Check glReadBuffer function pointer before calling it
Browse files Browse the repository at this point in the history
  • Loading branch information
hughsando committed Mar 5, 2024
1 parent 090733d commit bd8678f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project/src/opengl/OGLExport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1961,7 +1961,8 @@ DEFINE_PRIME5v(nme_gl_renderbuffer_storage_multisample);
void nme_gl_read_buffer(int inBuffer)
{
#if NME_GL_LEVEL>=300
glReadBuffer(inBuffer);
if (glReadBuffer)
glReadBuffer(inBuffer);
#endif
}
DEFINE_PRIME1v(nme_gl_read_buffer);
Expand Down

0 comments on commit bd8678f

Please sign in to comment.