src/opengl/qglextensions.cpp
changeset 37 758a864f9613
parent 30 5dc02b23752f
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
   252     // Geometry shaders are optional...
   252     // Geometry shaders are optional...
   253     glProgramParameteriEXT = (_glProgramParameteriEXT) ctx->getProcAddress(QLatin1String("glProgramParameteriEXT"));
   253     glProgramParameteriEXT = (_glProgramParameteriEXT) ctx->getProcAddress(QLatin1String("glProgramParameteriEXT"));
   254     glFramebufferTextureEXT = (_glFramebufferTextureEXT) ctx->getProcAddress(QLatin1String("glFramebufferTextureEXT"));
   254     glFramebufferTextureEXT = (_glFramebufferTextureEXT) ctx->getProcAddress(QLatin1String("glFramebufferTextureEXT"));
   255     glFramebufferTextureLayerEXT = (_glFramebufferTextureLayerEXT) ctx->getProcAddress(QLatin1String("glFramebufferTextureLayerEXT"));
   255     glFramebufferTextureLayerEXT = (_glFramebufferTextureLayerEXT) ctx->getProcAddress(QLatin1String("glFramebufferTextureLayerEXT"));
   256     glFramebufferTextureFaceEXT = (_glFramebufferTextureFaceEXT) ctx->getProcAddress(QLatin1String("glFramebufferTextureFaceEXT"));
   256     glFramebufferTextureFaceEXT = (_glFramebufferTextureFaceEXT) ctx->getProcAddress(QLatin1String("glFramebufferTextureFaceEXT"));
       
   257 
       
   258     // Must at least have the FragmentShader extension to continue.
       
   259     if (!(QGLExtensions::glExtensions() & QGLExtensions::FragmentShader))
       
   260         return false;
   257 
   261 
   258     glCreateShader = (_glCreateShader) ctx->getProcAddress(QLatin1String("glCreateShader"));
   262     glCreateShader = (_glCreateShader) ctx->getProcAddress(QLatin1String("glCreateShader"));
   259     if (glCreateShader) {
   263     if (glCreateShader) {
   260         glShaderSource = (_glShaderSource) ctx->getProcAddress(QLatin1String("glShaderSource"));
   264         glShaderSource = (_glShaderSource) ctx->getProcAddress(QLatin1String("glShaderSource"));
   261         glShaderBinary = (_glShaderBinary) ctx->getProcAddress(QLatin1String("glShaderBinary"));
   265         glShaderBinary = (_glShaderBinary) ctx->getProcAddress(QLatin1String("glShaderBinary"));