]> git.tdb.fi Git - libs/gl.git/blobdiff - source/ext_texture3d.cpp
Function pointer typedefs for core functions are not available everywhere
[libs/gl.git] / source / ext_texture3d.cpp
index e75044a8ba8367ea0fca0d19ffd4e5dbd5326f81..d3e3c5f532cdddcbfe6042b04df859251f136c23 100644 (file)
@@ -3,21 +3,21 @@
 namespace Msp {
 namespace GL {
 
-PFNGLTEXIMAGE3DPROC glTexImage3D = 0;
-PFNGLTEXSUBIMAGE3DPROC glTexSubImage3D = 0;
+PFNGLTEXIMAGE3DEXTPROC glTexImage3D = 0;
+PFNGLTEXSUBIMAGE3DEXTPROC glTexSubImage3D = 0;
 
 Extension::SupportLevel init_ext_texture3d()
 {
        if(is_version_at_least(1, 2))
        {
-               glTexImage3D = reinterpret_cast<PFNGLTEXIMAGE3DPROC>(get_proc_address("glTexImage3D"));
-               glTexSubImage3D = reinterpret_cast<PFNGLTEXSUBIMAGE3DPROC>(get_proc_address("glTexSubImage3D"));
+               glTexImage3D = reinterpret_cast<PFNGLTEXIMAGE3DEXTPROC>(get_proc_address("glTexImage3D"));
+               glTexSubImage3D = reinterpret_cast<PFNGLTEXSUBIMAGE3DEXTPROC>(get_proc_address("glTexSubImage3D"));
                return Extension::CORE;
        }
        if(is_supported("GL_EXT_texture3D"))
        {
-               glTexImage3D = reinterpret_cast<PFNGLTEXIMAGE3DPROC>(get_proc_address("glTexImage3DEXT"));
-               glTexSubImage3D = reinterpret_cast<PFNGLTEXSUBIMAGE3DPROC>(get_proc_address("glTexSubImage3DEXT"));
+               glTexImage3D = reinterpret_cast<PFNGLTEXIMAGE3DEXTPROC>(get_proc_address("glTexImage3DEXT"));
+               glTexSubImage3D = reinterpret_cast<PFNGLTEXSUBIMAGE3DEXTPROC>(get_proc_address("glTexSubImage3DEXT"));
                return Extension::EXTENSION;
        }
        return Extension::UNSUPPORTED;