forked from Mirrorlandia_minetest/irrlicht
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:
parent
49b39e456d
commit
05fb5bc776
@ -1210,7 +1210,7 @@ class COpenGLExtensionHandler
|
|||||||
void extGlCreateFramebuffers(GLsizei n, GLuint* framebuffers);
|
void extGlCreateFramebuffers(GLsizei n, GLuint* framebuffers);
|
||||||
void extGlBindTextures(GLuint first, GLsizei count, const GLuint *textures, const GLenum* targets);
|
void extGlBindTextures(GLuint first, GLsizei count, const GLuint *textures, const GLenum* targets);
|
||||||
void extGlGenerateTextureMipmap(GLuint texture, GLenum target);
|
void extGlGenerateTextureMipmap(GLuint texture, GLenum target);
|
||||||
|
|
||||||
|
|
||||||
// generic vsync setting method for several extensions
|
// generic vsync setting method for several extensions
|
||||||
void extGlSwapInterval(int interval);
|
void extGlSwapInterval(int interval);
|
||||||
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user