SDL Device correctly processing events?

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: SDL Device correctly processing events?

Post by kas1e »

@CuteAlien
edit: Default font header is BuiltInFont.h
Checked , bmp loader for sure used and works.. At least it compiles in for sure (if it not, then software rendering and burning video should have same issues)..
Are you using the current svn trunk or some older version there? Current trunk should use ETCF_ALLOW_MEMORY_COPY currently which simply puts a texture-copy in memory so GL shouldn't even be involved anymore (and that bug might even be fixed now as I worked on lock() a while ago, thought I haven't tested fonts yet since then with ETCF_ALLOW_MEMORY_COPY disabled, have to do...).
It was irrlicht 1.8.4 , but now i download todays repo, and trying to build it : it builds fine with Win32 device, but, when i tried to build it with SDL device, then when it tries to compile GLExtensionHandler.cpp, its throw lots of errors of such kind:

Code: Select all

 
$ make win32 NDEBUG=1
g++ -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing -fexpensive-optimizations -O3 -I../../include -Izlib -Ijpeglib -Ilibpng -DIRRLICHT_EXPORTS=1 -DNO_IRR_COMPILE_WITH_DIRECTINPUT_JOYSTICK_ -DNO_IRR_COMPILE_WITH_DIRECT3D_9_ -DIRR_COMPILE_WITH_DX9_DEV_PACK -D__GNUWIN32__ -D_WIN32 -DWIN32 -D_WINDOWS -D_MBCS -D_USRDLL  -c -o COpenGLExtensionHandler.o COpenGLExtensionHandler.cpp
In file included from COpenGLExtensionHandler.cpp:5:0:
COpenGLExtensionHandler.h:1153:38: error: 'GLsizeiptrARB' has not been declared
  void extGlBufferData(GLenum target, GLsizeiptrARB size, const GLvoid *data, GLenum usage);
                                      ^~~~~~~~~~~~~
COpenGLExtensionHandler.h:1155:42: error: 'GLintptrARB' has not been declared
  void extGlBufferSubData (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data);
                                          ^~~~~~~~~~~
COpenGLExtensionHandler.h:1155:62: error: 'GLsizeiptrARB' has not been declared
  void extGlBufferSubData (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data);
                                                              ^~~~~~~~~~~~~
COpenGLExtensionHandler.h:1156:45: error: 'GLintptrARB' has not been declared
  void extGlGetBufferSubData (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data);
                                             ^~~~~~~~~~~
COpenGLExtensionHandler.h:1156:65: error: 'GLsizeiptrARB' has not been declared
  void extGlGetBufferSubData (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data);
                                                                 ^~~~~~~~~~~~~
COpenGLExtensionHandler.h: In member function 'void irr::video::COpenGLExtensionHandler::irrGlActiveTexture(GLenum)':
COpenGLExtensionHandler.h:1392:3: error: 'glActiveTexture' was not declared in this scope
   glActiveTexture(texture);
   ^~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:1392:3: note: suggested alternative: 'irrGlActiveTexture'
   glActiveTexture(texture);
   ^~~~~~~~~~~~~~~
   irrGlActiveTexture
COpenGLExtensionHandler.h: In member function 'void irr::video::COpenGLExtensionHandler::irrGlClientActiveTexture(GLenum)':
COpenGLExtensionHandler.h:1403:2: error: 'glClientActiveTextureARB' was not declared in this scope
  glClientActiveTextureARB(texture);
  ^~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:1403:2: note: suggested alternative: 'irrGlClientActiveTexture'
  glClientActiveTextureARB(texture);
  ^~~~~~~~~~~~~~~~~~~~~~~~
  irrGlClientActiveTexture
COpenGLExtensionHandler.h: At global scope:
COpenGLExtensionHandler.h:2322:69: error: 'GLsizeiptrARB' has not been declared
 inline void COpenGLExtensionHandler::extGlBufferData(GLenum target, GLsizeiptrARB size, const GLvoid *data, GLenum usage)
                                                                     ^~~~~~~~~~~~~
COpenGLExtensionHandler.h:2346:72: error: 'GLintptrARB' has not been declared
 inline void COpenGLExtensionHandler::extGlBufferSubData(GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data)
                                                                        ^~~~~~~~~~~
COpenGLExtensionHandler.h:2346:92: error: 'GLsizeiptrARB' has not been declared
 inline void COpenGLExtensionHandler::extGlBufferSubData(GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data)
                                                                                            ^~~~~~~~~~~~~
COpenGLExtensionHandler.h:2358:75: error: 'GLintptrARB' has not been declared
 inline void COpenGLExtensionHandler::extGlGetBufferSubData(GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data)
                                                                           ^~~~~~~~~~~
COpenGLExtensionHandler.h:2358:95: error: 'GLsizeiptrARB' has not been declared
 inline void COpenGLExtensionHandler::extGlGetBufferSubData(GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data)
                                                                                               ^~~~~~~~~~~~~
COpenGLExtensionHandler.h: In member function 'void irr::video::COpenGLExtensionHandler::extGlTextureSubImage2D(GLuint, GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const void*)':
COpenGLExtensionHandler.h:2739:9: error: 'glTextureSubImage2D' was not declared in this scope
         glTextureSubImage2D(texture, level, xoffset, yoffset,width, height,format, type, pixels));
         ^~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2739:9: note: suggested alternative: 'extGlTextureSubImage2D'
         glTextureSubImage2D(texture, level, xoffset, yoffset,width, height,format, type, pixels));
         ^~~~~~~~~~~~~~~~~~~
         extGlTextureSubImage2D
COpenGLExtensionHandler.h:2748:9: error: 'glTextureSubImage2DEXT' was not declared in this scope
         glTextureSubImage2DEXT(texture, target, level, xoffset, yoffset,width, height,format, type, pixels));
         ^~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2748:9: note: suggested alternative: 'extGlTextureSubImage2D'
         glTextureSubImage2DEXT(texture, target, level, xoffset, yoffset,width, height,format, type, pixels));
         ^~~~~~~~~~~~~~~~~~~~~~
         extGlTextureSubImage2D
COpenGLExtensionHandler.h:2756:18: error: 'GL_TEXTURE_1D_ARRAY' was not declared in this scope
             case GL_TEXTURE_1D_ARRAY:
                  ^~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2756:18: note: suggested alternative: 'WGL_TEXTURE_1D_ARB'
             case GL_TEXTURE_1D_ARRAY:
                  ^~~~~~~~~~~~~~~~~~~
                  WGL_TEXTURE_1D_ARB
COpenGLExtensionHandler.h:2757:31: error: 'GL_TEXTURE_BINDING_1D_ARRAY' was not declared in this scope
                 glGetIntegerv(GL_TEXTURE_BINDING_1D_ARRAY, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2757:31: note: suggested alternative: 'GL_TEXTURE_BINDING_1D'
                 glGetIntegerv(GL_TEXTURE_BINDING_1D_ARRAY, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                               GL_TEXTURE_BINDING_1D
COpenGLExtensionHandler.h:2762:18: error: 'GL_TEXTURE_2D_MULTISAMPLE' was not declared in this scope
             case GL_TEXTURE_2D_MULTISAMPLE:
                  ^~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2762:18: note: suggested alternative: 'GL_TEXTURE_CUBE_MAP'
             case GL_TEXTURE_2D_MULTISAMPLE:
                  ^~~~~~~~~~~~~~~~~~~~~~~~~
                  GL_TEXTURE_CUBE_MAP
COpenGLExtensionHandler.h:2763:31: error: 'GL_TEXTURE_BINDING_2D_MULTISAMPLE' was not declared in this scope
                 glGetIntegerv(GL_TEXTURE_BINDING_2D_MULTISAMPLE, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2763:31: note: suggested alternative: 'GL_TEXTURE_BINDING_2D'
                 glGetIntegerv(GL_TEXTURE_BINDING_2D_MULTISAMPLE, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                               GL_TEXTURE_BINDING_2D
COpenGLExtensionHandler.h:2766:13: error: duplicate case value
             case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:
             ^~~~
COpenGLExtensionHandler.h:2765:13: note: previously used here
             case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
             ^~~~
COpenGLExtensionHandler.h:2767:13: error: duplicate case value
             case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:
             ^~~~
COpenGLExtensionHandler.h:2765:13: note: previously used here
             case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
             ^~~~
COpenGLExtensionHandler.h:2768:13: error: duplicate case value
             case GL_TEXTURE_CUBE_MAP_POSITIVE_X:
             ^~~~
COpenGLExtensionHandler.h:2765:13: note: previously used here
             case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
             ^~~~
COpenGLExtensionHandler.h:2769:13: error: duplicate case value
             case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:
             ^~~~
COpenGLExtensionHandler.h:2765:13: note: previously used here
             case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
             ^~~~
COpenGLExtensionHandler.h:2770:13: error: duplicate case value
             case GL_TEXTURE_CUBE_MAP_POSITIVE_Z:
             ^~~~
COpenGLExtensionHandler.h:2765:13: note: previously used here
             case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
             ^~~~
COpenGLExtensionHandler.h:2771:31: error: 'GL_TEXTURE_BINDING_CUBE_MAP' was not declared in this scope
                 glGetIntegerv(GL_TEXTURE_BINDING_CUBE_MAP, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2771:31: note: suggested alternative: 'GL_TEXTURE_CUBE_MAP'
                 glGetIntegerv(GL_TEXTURE_BINDING_CUBE_MAP, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                               GL_TEXTURE_CUBE_MAP
COpenGLExtensionHandler.h:2773:18: error: 'GL_TEXTURE_RECTANGLE' was not declared in this scope
             case GL_TEXTURE_RECTANGLE:
                  ^~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2773:18: note: suggested alternative: 'WGL_TEXTURE_RECTANGLE_NV'
             case GL_TEXTURE_RECTANGLE:
                  ^~~~~~~~~~~~~~~~~~~~
                  WGL_TEXTURE_RECTANGLE_NV
COpenGLExtensionHandler.h:2774:31: error: 'GL_TEXTURE_BINDING_RECTANGLE' was not declared in this scope
                 glGetIntegerv(GL_TEXTURE_BINDING_RECTANGLE, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2774:31: note: suggested alternative: 'GL_TEXTURE_BINDING_1D'
                 glGetIntegerv(GL_TEXTURE_BINDING_RECTANGLE, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                               GL_TEXTURE_BINDING_1D
COpenGLExtensionHandler.h: In member function 'void irr::video::COpenGLExtensionHandler::extGlTextureStorage2D(GLuint, GLenum, GLsizei, GLenum, GLsizei, GLsizei)':
COpenGLExtensionHandler.h:2793:9: error: 'glTextureStorage2D' was not declared in this scope
         glTextureStorage2D(texture,levels,internalformat,width,height);
         ^~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2793:9: note: suggested alternative: 'extGlTextureStorage2D'
         glTextureStorage2D(texture,levels,internalformat,width,height);
         ^~~~~~~~~~~~~~~~~~
         extGlTextureStorage2D
COpenGLExtensionHandler.h:2802:9: error: 'glTextureStorage2DEXT' was not declared in this scope
         glTextureStorage2DEXT(texture,target,levels,internalformat,width,height);
         ^~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2802:9: note: suggested alternative: 'extGlTextureStorage2D'
         glTextureStorage2DEXT(texture,target,levels,internalformat,width,height);
         ^~~~~~~~~~~~~~~~~~~~~
         extGlTextureStorage2D
COpenGLExtensionHandler.h:2814:18: error: 'GL_TEXTURE_1D_ARRAY' was not declared in this scope
             case GL_TEXTURE_1D_ARRAY:
                  ^~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2814:18: note: suggested alternative: 'WGL_TEXTURE_1D_ARB'
             case GL_TEXTURE_1D_ARRAY:
                  ^~~~~~~~~~~~~~~~~~~
                  WGL_TEXTURE_1D_ARB
COpenGLExtensionHandler.h:2815:31: error: 'GL_TEXTURE_BINDING_1D_ARRAY' was not declared in this scope
                 glGetIntegerv(GL_TEXTURE_BINDING_1D_ARRAY, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2815:31: note: suggested alternative: 'GL_TEXTURE_BINDING_1D'
                 glGetIntegerv(GL_TEXTURE_BINDING_1D_ARRAY, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                               GL_TEXTURE_BINDING_1D
COpenGLExtensionHandler.h:2821:31: error: 'GL_TEXTURE_BINDING_CUBE_MAP' was not declared in this scope
                 glGetIntegerv(GL_TEXTURE_BINDING_CUBE_MAP, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2821:31: note: suggested alternative: 'GL_TEXTURE_CUBE_MAP'
                 glGetIntegerv(GL_TEXTURE_BINDING_CUBE_MAP, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                               GL_TEXTURE_CUBE_MAP
COpenGLExtensionHandler.h:2823:18: error: 'GL_TEXTURE_RECTANGLE' was not declared in this scope
             case GL_TEXTURE_RECTANGLE:
                  ^~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2823:18: note: suggested alternative: 'WGL_TEXTURE_RECTANGLE_NV'
             case GL_TEXTURE_RECTANGLE:
                  ^~~~~~~~~~~~~~~~~~~~
                  WGL_TEXTURE_RECTANGLE_NV
COpenGLExtensionHandler.h:2824:31: error: 'GL_TEXTURE_BINDING_RECTANGLE' was not declared in this scope
                 glGetIntegerv(GL_TEXTURE_BINDING_RECTANGLE, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2824:31: note: suggested alternative: 'GL_TEXTURE_BINDING_1D'
                 glGetIntegerv(GL_TEXTURE_BINDING_RECTANGLE, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                               GL_TEXTURE_BINDING_1D
COpenGLExtensionHandler.h:2833:9: error: 'glTexStorage2D' was not declared in this scope
         glTexStorage2D(target,levels,internalformat,width,height);
         ^~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2833:9: note: suggested alternative: 'glTexSubImage2D'
         glTexStorage2D(target,levels,internalformat,width,height);
         ^~~~~~~~~~~~~~
         glTexSubImage2D
COpenGLExtensionHandler.h: In member function 'void irr::video::COpenGLExtensionHandler::extGlTextureStorage3D(GLuint, GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLsizei)':
COpenGLExtensionHandler.h:2847:9: error: 'glTextureStorage3D' was not declared in this scope
         glTextureStorage3D(texture,levels,internalformat,width,height,depth);
         ^~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2847:9: note: suggested alternative: 'extGlTextureStorage3D'
         glTextureStorage3D(texture,levels,internalformat,width,height,depth);
         ^~~~~~~~~~~~~~~~~~
         extGlTextureStorage3D
COpenGLExtensionHandler.h:2856:9: error: 'glTextureStorage3DEXT' was not declared in this scope
         glTextureStorage3DEXT(texture,target,levels,internalformat,width,height,depth);
         ^~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2856:9: note: suggested alternative: 'extGlTextureStorage3D'
         glTextureStorage3DEXT(texture,target,levels,internalformat,width,height,depth);
         ^~~~~~~~~~~~~~~~~~~~~
         extGlTextureStorage3D
COpenGLExtensionHandler.h:2868:18: error: 'GL_TEXTURE_2D_ARRAY' was not declared in this scope
             case GL_TEXTURE_2D_ARRAY:
                  ^~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2868:18: note: suggested alternative: 'GL_TEXTURE_COORD_ARRAY'
             case GL_TEXTURE_2D_ARRAY:
                  ^~~~~~~~~~~~~~~~~~~
                  GL_TEXTURE_COORD_ARRAY
COpenGLExtensionHandler.h:2869:31: error: 'GL_TEXTURE_BINDING_2D_ARRAY' was not declared in this scope
                 glGetIntegerv(GL_TEXTURE_BINDING_2D_ARRAY, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2869:31: note: suggested alternative: 'GL_TEXTURE_BINDING_2D'
                 glGetIntegerv(GL_TEXTURE_BINDING_2D_ARRAY, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                               GL_TEXTURE_BINDING_2D
COpenGLExtensionHandler.h:2871:18: error: 'GL_TEXTURE_3D' was not declared in this scope
             case GL_TEXTURE_3D:
                  ^~~~~~~~~~~~~
COpenGLExtensionHandler.h:2871:18: note: suggested alternative: 'GL_TEXTURE_1D'
             case GL_TEXTURE_3D:
                  ^~~~~~~~~~~~~
                  GL_TEXTURE_1D
COpenGLExtensionHandler.h:2872:31: error: 'GL_TEXTURE_BINDING_3D' was not declared in this scope
                 glGetIntegerv(GL_TEXTURE_BINDING_3D, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2872:31: note: suggested alternative: 'GL_TEXTURE_BINDING_1D'
                 glGetIntegerv(GL_TEXTURE_BINDING_3D, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~
                               GL_TEXTURE_BINDING_1D
COpenGLExtensionHandler.h:2874:18: error: 'GL_TEXTURE_CUBE_MAP_ARRAY' was not declared in this scope
             case GL_TEXTURE_CUBE_MAP_ARRAY:
                  ^~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2874:18: note: suggested alternative: 'WGL_TEXTURE_CUBE_MAP_ARB'
             case GL_TEXTURE_CUBE_MAP_ARRAY:
                  ^~~~~~~~~~~~~~~~~~~~~~~~~
                  WGL_TEXTURE_CUBE_MAP_ARB
COpenGLExtensionHandler.h:2875:31: error: 'GL_TEXTURE_BINDING_CUBE_MAP_ARRAY' was not declared in this scope
                 glGetIntegerv(GL_TEXTURE_BINDING_CUBE_MAP_ARRAY, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2875:31: note: suggested alternative: 'WGL_TEXTURE_CUBE_MAP_ARB'
                 glGetIntegerv(GL_TEXTURE_BINDING_CUBE_MAP_ARRAY, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                               WGL_TEXTURE_CUBE_MAP_ARB
COpenGLExtensionHandler.h:2884:9: error: 'glTexStorage3D' was not declared in this scope
         glTexStorage3D(target,levels,internalformat,width,height,depth);
         ^~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2884:9: note: suggested alternative: 'glTexSubImage2D'
         glTexStorage3D(target,levels,internalformat,width,height,depth);
         ^~~~~~~~~~~~~~
         glTexSubImage2D
COpenGLExtensionHandler.h: In member function 'void irr::video::COpenGLExtensionHandler::extGlNamedFramebufferTexture(GLuint, GLenum, GLuint, GLint)':
COpenGLExtensionHandler.h:2896:13: error: 'pGlNamedFramebufferTexture' was not declared in this scope
             pGlNamedFramebufferTexture(framebuffer, attachment, texture, level);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2896:13: note: suggested alternative: 'extGlNamedFramebufferTexture'
             pGlNamedFramebufferTexture(framebuffer, attachment, texture, level);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~
             extGlNamedFramebufferTexture
COpenGLExtensionHandler.h:2901:13: error: 'pGlNamedFramebufferTextureEXT' was not declared in this scope
             pGlNamedFramebufferTextureEXT(framebuffer, attachment, texture, level);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2901:13: note: suggested alternative: 'extGlNamedFramebufferTexture'
             pGlNamedFramebufferTextureEXT(framebuffer, attachment, texture, level);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             extGlNamedFramebufferTexture
COpenGLExtensionHandler.h:2907:19: error: 'GL_FRAMEBUFFER_BINDING' was not declared in this scope
     glGetIntegerv(GL_FRAMEBUFFER_BINDING,reinterpret_cast<GLint*>(&bound));
                   ^~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2907:19: note: suggested alternative: 'GL_FRAMEBUFFER_COMPLETE'
     glGetIntegerv(GL_FRAMEBUFFER_BINDING,reinterpret_cast<GLint*>(&bound));
                   ^~~~~~~~~~~~~~~~~~~~~~
                   GL_FRAMEBUFFER_COMPLETE
COpenGLExtensionHandler.h:2910:9: error: 'pGlBindFramebuffer' was not declared in this scope
         pGlBindFramebuffer(GL_FRAMEBUFFER,framebuffer);
         ^~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2910:9: note: suggested alternative: 'irrGlBindFramebuffer'
         pGlBindFramebuffer(GL_FRAMEBUFFER,framebuffer);
         ^~~~~~~~~~~~~~~~~~
         irrGlBindFramebuffer
COpenGLExtensionHandler.h:2911:5: error: 'pGlFramebufferTexture' was not declared in this scope
     pGlFramebufferTexture(GL_FRAMEBUFFER,attachment,texture,level);
     ^~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2911:5: note: suggested alternative: 'irrGlFramebufferTexture2D'
     pGlFramebufferTexture(GL_FRAMEBUFFER,attachment,texture,level);
     ^~~~~~~~~~~~~~~~~~~~~
     irrGlFramebufferTexture2D
COpenGLExtensionHandler.h:2913:9: error: 'pGlBindFramebuffer' was not declared in this scope
         pGlBindFramebuffer(GL_FRAMEBUFFER,bound);
         ^~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2913:9: note: suggested alternative: 'irrGlBindFramebuffer'
         pGlBindFramebuffer(GL_FRAMEBUFFER,bound);
         ^~~~~~~~~~~~~~~~~~
         irrGlBindFramebuffer
COpenGLExtensionHandler.h: In member function 'void irr::video::COpenGLExtensionHandler::extGlCreateTextures(GLenum, GLsizei, GLuint*)':
COpenGLExtensionHandler.h:2936:9: error: 'glCreateTextures' was not declared in this scope
         glCreateTextures(target,n,textures);
         ^~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2936:9: note: suggested alternative: 'extGlCreateTextures'
         glCreateTextures(target,n,textures);
         ^~~~~~~~~~~~~~~~
         extGlCreateTextures
COpenGLExtensionHandler.h: In member function 'void irr::video::COpenGLExtensionHandler::extGlCreateFramebuffers(GLsizei, GLuint*)':
COpenGLExtensionHandler.h:2951:13: error: 'pGlCreateFramebuffers' was not declared in this scope
             pGlCreateFramebuffers(n, framebuffers);
             ^~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2951:13: note: suggested alternative: 'extGlCreateFramebuffers'
             pGlCreateFramebuffers(n, framebuffers);
             ^~~~~~~~~~~~~~~~~~~~~
             extGlCreateFramebuffers
COpenGLExtensionHandler.h:2956:5: error: 'pGlGenFramebuffers' was not declared in this scope
     pGlGenFramebuffers(n, framebuffers);
     ^~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2956:5: note: suggested alternative: 'irrGlGenFramebuffers'
     pGlGenFramebuffers(n, framebuffers);
     ^~~~~~~~~~~~~~~~~~
     irrGlGenFramebuffers
COpenGLExtensionHandler.h: In member function 'void irr::video::COpenGLExtensionHandler::extGlBindTextures(GLuint, GLsizei, const GLuint*, const GLenum*)':
COpenGLExtensionHandler.h:2962:41: error: 'GL_TEXTURE_3D' was not declared in this scope
                                         GL_TEXTURE_3D,GL_TEXTURE_RECTANGLE,GL_TEXTURE_CUBE_MAP, // GL 2.x
                                         ^~~~~~~~~~~~~
COpenGLExtensionHandler.h:2962:41: note: suggested alternative: 'GL_TEXTURE_1D'
                                         GL_TEXTURE_3D,GL_TEXTURE_RECTANGLE,GL_TEXTURE_CUBE_MAP, // GL 2.x
                                         ^~~~~~~~~~~~~
                                         GL_TEXTURE_1D
COpenGLExtensionHandler.h:2962:55: error: 'GL_TEXTURE_RECTANGLE' was not declared in this scope
                                         GL_TEXTURE_3D,GL_TEXTURE_RECTANGLE,GL_TEXTURE_CUBE_MAP, // GL 2.x
                                                       ^~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2962:55: note: suggested alternative: 'WGL_TEXTURE_RECTANGLE_NV'
                                         GL_TEXTURE_3D,GL_TEXTURE_RECTANGLE,GL_TEXTURE_CUBE_MAP, // GL 2.x
                                                       ^~~~~~~~~~~~~~~~~~~~
                                                       WGL_TEXTURE_RECTANGLE_NV
COpenGLExtensionHandler.h:2963:41: error: 'GL_TEXTURE_1D_ARRAY' was not declared in this scope
                                         GL_TEXTURE_1D_ARRAY,GL_TEXTURE_2D_ARRAY,GL_TEXTURE_BUFFER, // GL 3.x
                                         ^~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2963:41: note: suggested alternative: 'WGL_TEXTURE_1D_ARB'
                                         GL_TEXTURE_1D_ARRAY,GL_TEXTURE_2D_ARRAY,GL_TEXTURE_BUFFER, // GL 3.x
                                         ^~~~~~~~~~~~~~~~~~~
                                         WGL_TEXTURE_1D_ARB
COpenGLExtensionHandler.h:2963:61: error: 'GL_TEXTURE_2D_ARRAY' was not declared in this scope
                                         GL_TEXTURE_1D_ARRAY,GL_TEXTURE_2D_ARRAY,GL_TEXTURE_BUFFER, // GL 3.x
                                                             ^~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2963:61: note: suggested alternative: 'GL_TEXTURE_COORD_ARRAY'
                                         GL_TEXTURE_1D_ARRAY,GL_TEXTURE_2D_ARRAY,GL_TEXTURE_BUFFER, // GL 3.x
                                                             ^~~~~~~~~~~~~~~~~~~
                                                             GL_TEXTURE_COORD_ARRAY
COpenGLExtensionHandler.h:2963:81: error: 'GL_TEXTURE_BUFFER' was not declared in this scope
                                         GL_TEXTURE_1D_ARRAY,GL_TEXTURE_2D_ARRAY,GL_TEXTURE_BUFFER, // GL 3.x
                                                                                 ^~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2963:81: note: suggested alternative: 'GL_TEXTURE_BORDER'
                                         GL_TEXTURE_1D_ARRAY,GL_TEXTURE_2D_ARRAY,GL_TEXTURE_BUFFER, // GL 3.x
                                                                                 ^~~~~~~~~~~~~~~~~
                                                                                 GL_TEXTURE_BORDER
COpenGLExtensionHandler.h:2964:41: error: 'GL_TEXTURE_CUBE_MAP_ARRAY' was not declared in this scope
                                         GL_TEXTURE_CUBE_MAP_ARRAY,GL_TEXTURE_2D_MULTISAMPLE,GL_TEXTURE_2D_MULTISAMPLE_ARRAY}; // GL 4.x
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2964:41: note: suggested alternative: 'WGL_TEXTURE_CUBE_MAP_ARB'
                                         GL_TEXTURE_CUBE_MAP_ARRAY,GL_TEXTURE_2D_MULTISAMPLE,GL_TEXTURE_2D_MULTISAMPLE_ARRAY}; // GL 4.x
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~
                                         WGL_TEXTURE_CUBE_MAP_ARB
COpenGLExtensionHandler.h:2964:67: error: 'GL_TEXTURE_2D_MULTISAMPLE' was not declared in this scope
                                         GL_TEXTURE_CUBE_MAP_ARRAY,GL_TEXTURE_2D_MULTISAMPLE,GL_TEXTURE_2D_MULTISAMPLE_ARRAY}; // GL 4.x
                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2964:67: note: suggested alternative: 'GL_TEXTURE_CUBE_MAP'
                                         GL_TEXTURE_CUBE_MAP_ARRAY,GL_TEXTURE_2D_MULTISAMPLE,GL_TEXTURE_2D_MULTISAMPLE_ARRAY}; // GL 4.x
                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
                                                                   GL_TEXTURE_CUBE_MAP
COpenGLExtensionHandler.h:2964:93: error: 'GL_TEXTURE_2D_MULTISAMPLE_ARRAY' was not declared in this scope
                                         GL_TEXTURE_CUBE_MAP_ARRAY,GL_TEXTURE_2D_MULTISAMPLE,GL_TEXTURE_2D_MULTISAMPLE_ARRAY}; // GL 4.x
                                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2964:93: note: suggested alternative: 'GL_TEXTURE_COORD_ARRAY'
                                         GL_TEXTURE_CUBE_MAP_ARRAY,GL_TEXTURE_2D_MULTISAMPLE,GL_TEXTURE_2D_MULTISAMPLE_ARRAY}; // GL 4.x
                                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                             GL_TEXTURE_COORD_ARRAY
COpenGLExtensionHandler.h:2972:9: error: 'glBindTextures' was not declared in this scope
         glBindTextures(first,count,textures);
         ^~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2972:9: note: suggested alternative: 'glBindTexture'
         glBindTextures(first,count,textures);
         ^~~~~~~~~~~~~~
         glBindTexture
COpenGLExtensionHandler.h:2978:23: error: 'GL_ACTIVE_TEXTURE' was not declared in this scope
         glGetIntegerv(GL_ACTIVE_TEXTURE,&activeTex);
                       ^~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:2978:23: note: suggested alternative: 'GL_4D_COLOR_TEXTURE'
         glGetIntegerv(GL_ACTIVE_TEXTURE,&activeTex);
                       ^~~~~~~~~~~~~~~~~
                       GL_4D_COLOR_TEXTURE
COpenGLExtensionHandler.h: In member function 'void irr::video::COpenGLExtensionHandler::extGlGenerateTextureMipmap(GLuint, GLenum)':
COpenGLExtensionHandler.h:3008:9: error: 'glGenerateTextureMipmap' was not declared in this scope
         glGenerateTextureMipmap(texture);
         ^~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:3008:9: note: suggested alternative: 'extGlGenerateTextureMipmap'
         glGenerateTextureMipmap(texture);
         ^~~~~~~~~~~~~~~~~~~~~~~
         extGlGenerateTextureMipmap
COpenGLExtensionHandler.h:3017:9: error: 'glGenerateTextureMipmapEXT' was not declared in this scope
         glGenerateTextureMipmapEXT(texture,target);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:3017:9: note: suggested alternative: 'extGlGenerateTextureMipmap'
         glGenerateTextureMipmapEXT(texture,target);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
         extGlGenerateTextureMipmap
COpenGLExtensionHandler.h:3032:18: error: 'GL_TEXTURE_1D_ARRAY' was not declared in this scope
             case GL_TEXTURE_1D_ARRAY:
                  ^~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:3032:18: note: suggested alternative: 'WGL_TEXTURE_1D_ARB'
             case GL_TEXTURE_1D_ARRAY:
                  ^~~~~~~~~~~~~~~~~~~
                  WGL_TEXTURE_1D_ARB
COpenGLExtensionHandler.h:3033:31: error: 'GL_TEXTURE_BINDING_1D_ARRAY' was not declared in this scope
                 glGetIntegerv(GL_TEXTURE_BINDING_1D_ARRAY, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:3033:31: note: suggested alternative: 'GL_TEXTURE_BINDING_1D'
                 glGetIntegerv(GL_TEXTURE_BINDING_1D_ARRAY, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                               GL_TEXTURE_BINDING_1D
COpenGLExtensionHandler.h:3038:18: error: 'GL_TEXTURE_2D_ARRAY' was not declared in this scope
             case GL_TEXTURE_2D_ARRAY:
                  ^~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:3038:18: note: suggested alternative: 'GL_TEXTURE_COORD_ARRAY'
             case GL_TEXTURE_2D_ARRAY:
                  ^~~~~~~~~~~~~~~~~~~
                  GL_TEXTURE_COORD_ARRAY
COpenGLExtensionHandler.h:3039:31: error: 'GL_TEXTURE_BINDING_2D_ARRAY' was not declared in this scope
                 glGetIntegerv(GL_TEXTURE_BINDING_2D_ARRAY, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:3039:31: note: suggested alternative: 'GL_TEXTURE_BINDING_2D'
                 glGetIntegerv(GL_TEXTURE_BINDING_2D_ARRAY, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                               GL_TEXTURE_BINDING_2D
COpenGLExtensionHandler.h:3041:18: error: 'GL_TEXTURE_2D_MULTISAMPLE' was not declared in this scope
             case GL_TEXTURE_2D_MULTISAMPLE:
                  ^~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:3041:18: note: suggested alternative: 'GL_TEXTURE_CUBE_MAP'
             case GL_TEXTURE_2D_MULTISAMPLE:
                  ^~~~~~~~~~~~~~~~~~~~~~~~~
                  GL_TEXTURE_CUBE_MAP
COpenGLExtensionHandler.h:3042:31: error: 'GL_TEXTURE_BINDING_2D_MULTISAMPLE' was not declared in this scope
                 glGetIntegerv(GL_TEXTURE_BINDING_2D_MULTISAMPLE, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:3042:31: note: suggested alternative: 'GL_TEXTURE_BINDING_2D'
                 glGetIntegerv(GL_TEXTURE_BINDING_2D_MULTISAMPLE, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                               GL_TEXTURE_BINDING_2D
COpenGLExtensionHandler.h:3044:18: error: 'GL_TEXTURE_2D_MULTISAMPLE_ARRAY' was not declared in this scope
             case GL_TEXTURE_2D_MULTISAMPLE_ARRAY:
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:3044:18: note: suggested alternative: 'GL_TEXTURE_COORD_ARRAY'
             case GL_TEXTURE_2D_MULTISAMPLE_ARRAY:
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                  GL_TEXTURE_COORD_ARRAY
COpenGLExtensionHandler.h:3045:31: error: 'GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY' was not declared in this scope
                 glGetIntegerv(GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:3045:31: note: suggested alternative: 'GL_TEXTURE_BINDING_2D'
                 glGetIntegerv(GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                               GL_TEXTURE_BINDING_2D
COpenGLExtensionHandler.h:3047:18: error: 'GL_TEXTURE_3D' was not declared in this scope
             case GL_TEXTURE_3D:
                  ^~~~~~~~~~~~~
COpenGLExtensionHandler.h:3047:18: note: suggested alternative: 'GL_TEXTURE_1D'
             case GL_TEXTURE_3D:
                  ^~~~~~~~~~~~~
                  GL_TEXTURE_1D
COpenGLExtensionHandler.h:3048:31: error: 'GL_TEXTURE_BINDING_3D' was not declared in this scope
                 glGetIntegerv(GL_TEXTURE_BINDING_3D, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:3048:31: note: suggested alternative: 'GL_TEXTURE_BINDING_1D'
                 glGetIntegerv(GL_TEXTURE_BINDING_3D, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~
                               GL_TEXTURE_BINDING_1D
COpenGLExtensionHandler.h:3050:18: error: 'GL_TEXTURE_BUFFER' was not declared in this scope
             case GL_TEXTURE_BUFFER:
                  ^~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:3050:18: note: suggested alternative: 'GL_TEXTURE_BORDER'
             case GL_TEXTURE_BUFFER:
                  ^~~~~~~~~~~~~~~~~
                  GL_TEXTURE_BORDER
COpenGLExtensionHandler.h:3051:31: error: 'GL_TEXTURE_BINDING_BUFFER' was not declared in this scope
                 glGetIntegerv(GL_TEXTURE_BINDING_BUFFER, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:3051:31: note: suggested alternative: 'GL_TEXTURE_BINDING_1D'
                 glGetIntegerv(GL_TEXTURE_BINDING_BUFFER, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~
                               GL_TEXTURE_BINDING_1D
COpenGLExtensionHandler.h:3054:31: error: 'GL_TEXTURE_BINDING_CUBE_MAP' was not declared in this scope
                 glGetIntegerv(GL_TEXTURE_BINDING_CUBE_MAP, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:3054:31: note: suggested alternative: 'GL_TEXTURE_CUBE_MAP'
                 glGetIntegerv(GL_TEXTURE_BINDING_CUBE_MAP, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                               GL_TEXTURE_CUBE_MAP
COpenGLExtensionHandler.h:3056:18: error: 'GL_TEXTURE_CUBE_MAP_ARRAY' was not declared in this scope
             case GL_TEXTURE_CUBE_MAP_ARRAY:
                  ^~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:3056:18: note: suggested alternative: 'WGL_TEXTURE_CUBE_MAP_ARB'
             case GL_TEXTURE_CUBE_MAP_ARRAY:
                  ^~~~~~~~~~~~~~~~~~~~~~~~~
                  WGL_TEXTURE_CUBE_MAP_ARB
COpenGLExtensionHandler.h:3057:31: error: 'GL_TEXTURE_BINDING_CUBE_MAP_ARRAY' was not declared in this scope
                 glGetIntegerv(GL_TEXTURE_BINDING_CUBE_MAP_ARRAY, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:3057:31: note: suggested alternative: 'WGL_TEXTURE_CUBE_MAP_ARB'
                 glGetIntegerv(GL_TEXTURE_BINDING_CUBE_MAP_ARRAY, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                               WGL_TEXTURE_CUBE_MAP_ARB
COpenGLExtensionHandler.h:3059:18: error: 'GL_TEXTURE_RECTANGLE' was not declared in this scope
             case GL_TEXTURE_RECTANGLE:
                  ^~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:3059:18: note: suggested alternative: 'WGL_TEXTURE_RECTANGLE_NV'
             case GL_TEXTURE_RECTANGLE:
                  ^~~~~~~~~~~~~~~~~~~~
                  WGL_TEXTURE_RECTANGLE_NV
COpenGLExtensionHandler.h:3060:31: error: 'GL_TEXTURE_BINDING_RECTANGLE' was not declared in this scope
                 glGetIntegerv(GL_TEXTURE_BINDING_RECTANGLE, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:3060:31: note: suggested alternative: 'GL_TEXTURE_BINDING_1D'
                 glGetIntegerv(GL_TEXTURE_BINDING_RECTANGLE, &bound);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                               GL_TEXTURE_BINDING_1D
COpenGLExtensionHandler.h:3070:9: error: 'glGenerateMipmap' was not declared in this scope
         glGenerateMipmap(target);
         ^~~~~~~~~~~~~~~~
COpenGLExtensionHandler.h:3070:9: note: suggested alternative: 'irrGlGenerateMipmap'
         glGenerateMipmap(target);
         ^~~~~~~~~~~~~~~~
         irrGlGenerateMipmap
COpenGLExtensionHandler.cpp: In member function 'void irr::video::COpenGLExtensionHandler::initExtensions(bool)':
COpenGLExtensionHandler.cpp:701:14: error: 'GL_ALIASED_LINE_WIDTH_RANGE' was not declared in this scope
  glGetFloatv(GL_ALIASED_LINE_WIDTH_RANGE, DimAliasedLine);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.cpp:701:14: note: suggested alternative: 'GL_LINE_WIDTH_RANGE'
  glGetFloatv(GL_ALIASED_LINE_WIDTH_RANGE, DimAliasedLine);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
              GL_LINE_WIDTH_RANGE
COpenGLExtensionHandler.cpp:702:14: error: 'GL_ALIASED_POINT_SIZE_RANGE' was not declared in this scope
  glGetFloatv(GL_ALIASED_POINT_SIZE_RANGE, DimAliasedPoint);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.cpp:702:14: note: suggested alternative: 'GL_POINT_SIZE_RANGE'
  glGetFloatv(GL_ALIASED_POINT_SIZE_RANGE, DimAliasedPoint);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
              GL_POINT_SIZE_RANGE
COpenGLExtensionHandler.cpp:703:14: error: 'GL_SMOOTH_LINE_WIDTH_RANGE' was not declared in this scope
  glGetFloatv(GL_SMOOTH_LINE_WIDTH_RANGE, DimSmoothedLine);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.cpp:703:14: note: suggested alternative: 'GL_LINE_WIDTH_RANGE'
  glGetFloatv(GL_SMOOTH_LINE_WIDTH_RANGE, DimSmoothedLine);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~
              GL_LINE_WIDTH_RANGE
COpenGLExtensionHandler.cpp:704:14: error: 'GL_SMOOTH_POINT_SIZE_RANGE' was not declared in this scope
  glGetFloatv(GL_SMOOTH_POINT_SIZE_RANGE, DimSmoothedPoint);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~
COpenGLExtensionHandler.cpp:704:14: note: suggested alternative: 'GL_POINT_SIZE_RANGE'
  glGetFloatv(GL_SMOOTH_POINT_SIZE_RANGE, DimSmoothedPoint);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~
              GL_POINT_SIZE_RANGE
make: *** [<builtin>: COpenGLExtensionHandler.o] Error 1
 
From brief look, it seems that COpenGLCommon.h now contain all those SDL ifdefs which was before in COpenGLExtensionsHandler.h, and they didn't taken in accout anymore by some reassons. And even if i take and manually put those SDL ifdefs inside of COpenGLExtensionsHandler.h, then it give less errors, but still give errors.

So something got broken in 1.9.0 when those files was touche, as it only can compiles for win32device now.

You may try probabaly to build it yourself (without even actual SDL env, just to see what was broken). Probabaly will be something trivial, just about order of includes or/and ifdefs.

EDIT: i tried to build it with and without _IRR_OPENGL_USE_EXTPOINTER_ and _IRR_COMPILE_WITH_WGL_MANAGER_ , but in all cases with SDL device it have those errors now.
Last edited by kas1e on Fri Aug 30, 2019 8:09 am, edited 3 times in total.
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: SDL Device correctly processing events?

Post by kas1e »

@CuteAlien
Also in 1.9.0 "make win32 clean" stop working. In 1.8.4 it works for sure, so i had with 1.9.0 do just "make clean".
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: SDL Device correctly processing events?

Post by CuteAlien »

make win32 clean also doesn't work on Irrlicht 1.8 it seems (just compiles Irrlicht). I hope make clean does the hope.

I don't have much time right now, but did a quick test by installing SDL on Windows (SDL 1.2.15 the zip, then did a .configure, make, make-install on MinGW and for a quick test just added -I/usr/local/include in my Makefile and enabled _IRR_COMPILE_WITH_SDL_DEVICE_ in IrrCompileConfig.h, otherwise pure svn trunk).
Sorry, can't reproduce the compile-errors. But maybe I don't use yet exact same options etc - will have to check later.

There was a change recently when I added KHR folder (below source/Irrlicht), maybe that messed up something (new way of handling OpenGL includes, but had to do that switch as Khronos goes that way). Or maybe something older - the stuff you mentioned above was changed a few years ago by someone I think. Thought people have used SDL since then, so that shouldn't be it.

And just in case it matters, I've tested this now on Windows 10, with GCC 6.3.0
Could also be you have to insteall
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: SDL Device correctly processing events?

Post by kas1e »

@CuteAlien
make win32 clean also doesn't work on Irrlicht 1.8 it seems (just compiles Irrlicht). I hope make clean does the hope.
I retested again, and download clean 1.8.4 : "make win32 clean" works for sure there (on msys2 with mingw). But with 1.9.0 only "make clean" works.
I don't have much time right now, but did a quick test by installing SDL on Windows (SDL 1.2.15 the zip, then did a .configure, make, make-install on MinGW and for a quick test just added -I/usr/local/include in my Makefile and enabled _IRR_COMPILE_WITH_SDL_DEVICE_ in IrrCompileConfig.h, otherwise pure svn trunk).
Sorry, can't reproduce the compile-errors. But maybe I don't use yet exact same options etc - will have to check later.
Sounds like you do exactly the same what i do .. Of course i also comment you WIn32 device usage, i.e. for me it looks like this :

Code: Select all

 
//! WIN32 for Windows32
//! WIN64 for Windows64
// The windows platform and API support SDL and WINDOW device
#if defined(_WIN32) || defined(_WIN64) || defined(WIN32) || defined(WIN64)
#define _IRR_WINDOWS_
#define _IRR_WINDOWS_API_
//#define _IRR_COMPILE_WITH_WINDOWS_DEVICE_
#define _IRR_COMPILE_WITH_SDL_DEVICE_
#endif
 
But one thing: why you use some other makefile and add -I/usr/local/include ? I use default one which come with irrlicht, without needs to adding anything, just doing "make win32" in msys2 shell.
And just in case it matters, I've tested this now on Windows 10, with GCC 6.3.0
My one also Windows 10, and for compiling irrlicht i use MSYS2 with x86 mingw, and gcc version is "7.3.0 (Rev2, Built by MSYS2 project)".

If it can be anything with my setup, then 1.8.4 version should't compiles too, but it compiles fine. Ane even latest 1.9.0 one compiles fine when use Win32device, but not when use SDL device. So can be something about SDL includes maybe .. will check more

Are you sure just you by some luck wasn't in 1.8.4 directory when checked it but think that its 1.9.0 ? Because that for you "make win32 clean" for 1.8.4 didn't work, but reacts like it recats in 1.9.0 can mean that you just mess 2 different distribs, and checking "make win32 clean" thing in 1.9.0, while SDL device in 1.8.4. Because strange that it behave differently for both issues, but behave exactly mirrored.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: SDL Device correctly processing events?

Post by CuteAlien »

Yeah, that looks like the difference, I didn't disable _IRR_COMPILE_WITH_WINDOWS_DEVICE_. And that one is later checked for
#define _IRR_OPENGL_USE_EXTPOINTER_ and #define _IRR_COMPILE_WITH_WGL_MANAGER_
So guess that check needs to be somewhat adapted so it also uses those with SDL on Windows.

Just checked again and 1.8 make win32 clean does start a compile in 1.8. Thought it's 1.8 from svn, not from the zip download (which should have identical Makefile...). But I suppose that's not so important.

edit: /usr/local/include is probably already in your system include path (it should be). I have to check why that's not the case here, but anyway - that was just a workaround so it finds the installed SDL lib.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: SDL Device correctly processing events?

Post by CuteAlien »

I've updated trunk, but only tested compilation, no time yet for testing how it behaves (maybe I can find some time on Sunday, will see).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: SDL Device correctly processing events?

Post by kas1e »

@CuteAlien
Oh yeah, that was it , thanks ! now was able to build 1.9.0 with sdl1 device on win32.
Through when on final stage it want to create shared library, it fail because of missed -lsdl in that line :

sharedlib_win32: LDFLAGS += -lgdi32 -lopengl32 -ld3dx9d -lwinmm -Wl,--add-stdcall-alias

so need to add -lsdl there too (and that was the same and for 1.8.4), so maybe you will want to add it to repo too.

Now, compiled all the examples and in 09.Meshviewer there is still no gadgets in opengl mode, and 24.Curosr now even didn't render anything in opengl mode, just white screen. In both examples all fine when use burning or software.

I do test all examples with latest trunk via SDL device on win32, and that what we have now:

01.HelloWorld : as before, all fine
02.Quake3Map : can't move camera in any renderer
03.CustomSceneNode : as before, all fine in all drivers
04.Movement: can't move camera in any renderer
05.UserInterface: nothing rendered in opengl, all white. works in burning and software
06.2Dgraphics: all fine as before
07.Collision : can't move camera in any renderer
08.SpecialFX: can't move camera in any renderer
09.MeshViewer: works in all renderers, just in opengl one no gadgers
10.Shaders: can't move camera in any renderer
11.PerPixelLighting: can't move camera in any renderer
12. TerrainRendering: can't move camera in any renderer
13. RenderToTexture: can't move camera in any renderer
15. LoadIrrFire: can't move camera in any renderer, and something now wrong with it : i can see some blinking triangles on cube, and fire are too close now, like some choords shifted
16.QuakeMapShader: can't move camera in any renderer
17.HelloWorld_Mobule: works as before, all fine
18.SplitScreen: can't move camera in any renderer
19.MouseAndJoystick: all fine, works as before
20. ManagedLights: all fine, works as before
21.Quake3Explorer: can't move camera in any renderer
22.MaterialViewer: works fine all renderers (mouse/camera moves ok)
23. SmeshHandling : works in all renderers , but can't move camera
24.CursorControl: in opengl white screen, in birning and software all fine
25.XMLHandling : all fine, as before
26.OcculusionQuert: works fine in all renderers
30.Profiling: works
Demo : works fine as before.


So, in general issues are :
SDL1 when use opengl render:
1. can't move camera by mouse with SDL device anymore in most examples in all renderers (probably with those ones which use IsActiveWindow() check)
2. 05.UserInterface and 24.CursorControl didn't render anything in opengl mode, just white screen
3. no gadgets in 09.meshviewer

General one for sdl and window device in 1.9.0:
15. LoadIrrFire something now wrong with it in rendering : i can see some blinking triangles on cube, and fire are too close now, like some choords shifted
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: SDL Device correctly processing events?

Post by CuteAlien »

OK, will have to check examples. Cursor likely has not SDL support. The problems with gadgets should be fixed.
I can't add the -lsdl because then it will no longer link for users without SDL (which is the default in Irrlicht). At best I can add some documentation.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: SDL Device correctly processing events?

Post by kas1e »

Cursor likely has not SDL support.
Is 1.9.0 have some new cursors-support code, which need to be implemented in SDL device ? Its not that it didn't moves at all, it tries to moves, but like one pixel left/right and nothing else. With 1.8.4 all works of course.
The problems with gadgets should be fixed.
Yeah, and that strange issue with 05 and 24 examples (where gui + text renders) are now just white screens. With 1.8.4 , 05 example works fine, and only 24 one render mess, but not both give white screen.
I can't add the -lsdl because then it will no longer link for users without SDL (which is the default in Irrlicht). At best I can add some documentation.
As yes, indeed. Documentation fix is fine too of course.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: SDL Device correctly processing events?

Post by CuteAlien »

Yeah, In 1.9 hardware cursors can be chagned (new icons). But only implemented for Win23 and X11.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: SDL Device correctly processing events?

Post by kas1e »

@CuteAlien
Yeah, In 1.9 hardware cursors can be chagned (new icons). But only implemented for Win23 and X11.
Is there possibility to fallback to old-cursors-way in 1.9 for SDL device at moment ? If not, how hard to implement it ? what need to be done for ?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: SDL Device correctly processing events?

Post by CuteAlien »

It really shouldn't matter, if that part is not supported it should just not change mouse-cursor-icons.
Sorry, I didn't check the problem today. I try to find to time next week to look at it.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: SDL Device correctly processing events?

Post by kas1e »

@CuteAlien
It really shouldn't matter, if that part is not supported it should just not change mouse-cursor-icons.
Sorry, I didn't check the problem today. I try to find to time next week to look at it.
Hm, but that not about mouse-cursor-icon. Its about that i can't move it. I mean, camera just jumps on few pixels in each side, but i can't move it as it was with 1.8.4. But look of cursor still the same as before, in that terms all fine.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: SDL Device correctly processing events?

Post by CuteAlien »

Fixed isWindowActive problem in svn 1.8 branch (will merge with trunk after I check the other troubles).
isWindowFocused can probably also be rewritten to use SDL_GetAppState instead - I don't think current version works same as for example the windows device.
There is still a problem with a white border on start in example 05 (maybe more didn't check them all yet).
And currently also fails compiled with D3D9 device.
Haven't checked yet the other problems.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: SDL Device correctly processing events?

Post by kas1e »

@CuteAlien
Fixed isWindowActive problem in svn 1.8 branch (will merge with trunk after I check the other troubles).
Oh yes, tested on win32 and amigao4 : indeed works everywhere ! That was good fix :)
isWindowFocused can probably also be rewritten to use SDL_GetAppState instead - I don't think current version works same as for example the windows device.
Yeah, windows device works differently : when you run examples, cursor jumps to the center of the window, as well as when you move mouse away from the window (like, from Demo example), then it stop rendering to not waste cpu. In SDL1 version currently when you run it cursor stays where it was, as well as when you move cursor away from window rendering contiues still. But that not big problem, at least by default all renders fine now and windows not black :)
Haven't checked yet the other problems.
If i dare to put list of problems in priority order, then probably (if, of course, you need it:) ) issue with "Missing gadgets in gui" can be second one to deal with. As seems issues with distorted look with 24 example in 1.8.4, and issues with 05 and 24 examples in 1.9.0 when they just render white now can be all related to one single issue, which can be harder to trace.

Btw, as we there for bug-reports already, there is little small one which can be easy to fix : its about Demo example. If you enable there mixer, then , sound are "distorted" a bit. That because of too low buffer , i.e. originally it "if (Mix_OpenAudio(22050, AUDIO_S16, 2, 128))" , that 128 of course too small. Also , original track are 44100, not 22050. So, to fix it all (and i test it all fine after change), it should be like this:
if (Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 4096))

(i.e. we cahnge 22050 on 44100 , then AUIDO_S16 on AUDIO_S16SYS (so, endian choices automatically) , and 128 on 4096 to increase buffer to avoid sound hickups).
Post Reply