Fix compile-errors when compiling without _IRR_OPENGL_USE_EXTPOINTER_

Thanks @Maksym Hamarnyk for the patch.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6119 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien 2020-06-13 14:56:21 +00:00
parent 49b39e456d
commit 05fb5bc776

@ -2868,7 +2868,7 @@ inline void COpenGLExtensionHandler::extGlTextureSubImage2D(GLuint texture, GLen
if (pGlTextureSubImage2D) if (pGlTextureSubImage2D)
pGlTextureSubImage2D(texture, level, xoffset, yoffset,width, height,format, type, pixels); pGlTextureSubImage2D(texture, level, xoffset, yoffset,width, height,format, type, pixels);
#else #else
glTextureSubImage2D(texture, level, xoffset, yoffset,width, height,format, type, pixels)); glTextureSubImage2D(texture, level, xoffset, yoffset,width, height,format, type, pixels);
#endif // _IRR_OPENGL_USE_EXTPOINTER_ #endif // _IRR_OPENGL_USE_EXTPOINTER_
} }
else if (FeatureAvailable[IRR_EXT_direct_state_access]) else if (FeatureAvailable[IRR_EXT_direct_state_access])
@ -2877,7 +2877,7 @@ inline void COpenGLExtensionHandler::extGlTextureSubImage2D(GLuint texture, GLen
if (pGlTextureSubImage2DEXT) if (pGlTextureSubImage2DEXT)
pGlTextureSubImage2DEXT(texture, target, level, xoffset, yoffset,width, height,format, type, pixels); pGlTextureSubImage2DEXT(texture, target, level, xoffset, yoffset,width, height,format, type, pixels);
#else #else
glTextureSubImage2DEXT(texture, target, level, xoffset, yoffset,width, height,format, type, pixels)); glTextureSubImage2DEXT(texture, target, level, xoffset, yoffset,width, height,format, type, pixels);
#endif // _IRR_OPENGL_USE_EXTPOINTER_ #endif // _IRR_OPENGL_USE_EXTPOINTER_
} }
else else