1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

GLES2: fix OGLRender::_initExtensions()

This commit is contained in:
Sergey Lipskiy 2015-05-14 20:32:57 +06:00
parent b88f801a62
commit b14086911c

View File

@ -1153,9 +1153,11 @@ void OGLRender::clearColorBuffer(float *_pColor )
void OGLRender::_initExtensions()
{
#ifndef GLES2
GLint majorVersion = 0;
glGetIntegerv(GL_MAJOR_VERSION, &majorVersion);
assert(majorVersion >= 3 && "Plugin requires GL version 3 or higher.");
#endif
#ifdef GL_IMAGE_TEXTURES_SUPPORT
GLint minorVersion = 0;