summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-02-01 08:52:57 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-02-01 08:52:57 (GMT)
commita7a6db7edc8cd67fd257167ecb3ea3029f2be38a (patch)
treead70bcffec9d0dc08bafc6f63d947c594db6df61 /src/opengl
parentda388773f581e251054abd037dc410ae52cfa69c (diff)
downloadQt-a7a6db7edc8cd67fd257167ecb3ea3029f2be38a.zip
Qt-a7a6db7edc8cd67fd257167ecb3ea3029f2be38a.tar.gz
Qt-a7a6db7edc8cd67fd257167ecb3ea3029f2be38a.tar.bz2
Remove reference to _ARB macros
These belong to an OpenGL extension which is not in use.
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
index f6ef827..2636761 100644
--- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
+++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
@@ -1362,13 +1362,13 @@ void QGL2PaintEngineExPrivate::drawCachedGlyphs(QFontEngineGlyphCache::Type glyp
if (userData->textureCoordVBOId == 0)
glGenBuffers(1, &userData->textureCoordVBOId);
- glBindBuffer(GL_ARRAY_BUFFER_ARB, userData->vertexCoordVBOId);
- glBufferData(GL_ARRAY_BUFFER_ARB, vertexCoordinateArraySize,
- vertexCoordinateArray.data(), GL_STATIC_DRAW_ARB);
+ glBindBuffer(GL_ARRAY_BUFFER, userData->vertexCoordVBOId);
+ glBufferData(GL_ARRAY_BUFFER, vertexCoordinateArraySize,
+ vertexCoordinateArray.data(), GL_STATIC_DRAW);
- glBindBuffer(GL_ARRAY_BUFFER_ARB, userData->textureCoordVBOId);
- glBufferData(GL_ARRAY_BUFFER_ARB, textureCoordinateArraySize,
- textureCoordinateArray.data(), GL_STATIC_DRAW_ARB);
+ glBindBuffer(GL_ARRAY_BUFFER, userData->textureCoordVBOId);
+ glBufferData(GL_ARRAY_BUFFER, textureCoordinateArraySize,
+ textureCoordinateArray.data(), GL_STATIC_DRAW);
// If a new user data has been created, make sure we delete the old
staticTextItem->setUserData(userData);
@@ -1386,10 +1386,10 @@ void QGL2PaintEngineExPrivate::drawCachedGlyphs(QFontEngineGlyphCache::Type glyp
QOpenGLStaticTextUserData *userData = static_cast<QOpenGLStaticTextUserData *>(staticTextItem->userData);
- glBindBuffer(GL_ARRAY_BUFFER_ARB, userData->vertexCoordVBOId);
+ glBindBuffer(GL_ARRAY_BUFFER, userData->vertexCoordVBOId);
glVertexAttribPointer(QT_VERTEX_COORDS_ATTR, 2, GL_FLOAT, GL_FALSE, 0, 0);
- glBindBuffer(GL_ARRAY_BUFFER_ARB, userData->textureCoordVBOId);
+ glBindBuffer(GL_ARRAY_BUFFER, userData->textureCoordVBOId);
glVertexAttribPointer(QT_TEXTURE_COORDS_ATTR, 2, GL_FLOAT, GL_FALSE, 0, 0);
}
@@ -1491,7 +1491,7 @@ void QGL2PaintEngineExPrivate::drawCachedGlyphs(QFontEngineGlyphCache::Type glyp
glDrawArrays(GL_TRIANGLES, 0, 6 * staticTextItem->numGlyphs);
// Reset bindings
- glBindBuffer(GL_ARRAY_BUFFER_ARB, 0);
+ glBindBuffer(GL_ARRAY_BUFFER, 0);
}
void QGL2PaintEngineEx::drawPixmaps(const QDrawPixmaps::Data *drawingData, int dataCount, const QPixmap &pixmap, QDrawPixmaps::DrawingHints hints)