diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2010-02-01 13:30:01 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2010-02-01 13:30:01 (GMT) |
commit | fe849f50ca83f50f6068b7d494cb228fae1d6309 (patch) | |
tree | 64ae403632763d4e5d576cd600de2561872032f5 /src/opengl/qglextensions.cpp | |
parent | c06c254cf208840f14c9e562cae976f1a61f0879 (diff) | |
download | Qt-fe849f50ca83f50f6068b7d494cb228fae1d6309.zip Qt-fe849f50ca83f50f6068b7d494cb228fae1d6309.tar.gz Qt-fe849f50ca83f50f6068b7d494cb228fae1d6309.tar.bz2 |
Geometry Shader support in QGLShaderProgram
Diffstat (limited to 'src/opengl/qglextensions.cpp')
-rw-r--r-- | src/opengl/qglextensions.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/opengl/qglextensions.cpp b/src/opengl/qglextensions.cpp index c091191..a4b2dc1 100644 --- a/src/opengl/qglextensions.cpp +++ b/src/opengl/qglextensions.cpp @@ -220,6 +220,12 @@ bool qt_resolve_buffer_extensions(QGLContext *ctx) bool qt_resolve_glsl_extensions(QGLContext *ctx) { + // Geometry shaders are optional... + glProgramParameteriEXT = (_glProgramParameteriEXT) ctx->getProcAddress(QLatin1String("glProgramParameteriEXT")); + glFramebufferTextureEXT = (_glFramebufferTextureEXT) ctx->getProcAddress(QLatin1String("glFramebufferTextureEXT")); + glFramebufferTextureLayerEXT = (_glFramebufferTextureLayerEXT) ctx->getProcAddress(QLatin1String("glFramebufferTextureLayerEXT")); + glFramebufferTextureFaceEXT = (_glFramebufferTextureFaceEXT) ctx->getProcAddress(QLatin1String("glFramebufferTextureFaceEXT")); + #if defined(QT_OPENGL_ES_2) // The GLSL shader functions are always present in OpenGL/ES 2.0. // The only exceptions are glGetProgramBinaryOES and glProgramBinaryOES. |