kwin: add a GLVertexBuffer::draw() overload

This overload doesn't take a clip region. Added for symmetry
with the render() method.
icc-effect-5.14.5
Fredrik Höglund 2013-06-10 22:21:16 +02:00
parent 761df7a56f
commit 15dae59999
2 changed files with 10 additions and 0 deletions

View File

@ -1886,6 +1886,11 @@ void GLVertexBuffer::unbindArrays()
d->unbindArrays();
}
void GLVertexBuffer::draw(GLenum primitiveMode, int first, int count)
{
draw(infiniteRegion(), primitiveMode, first, count, false);
}
void GLVertexBuffer::draw(const QRegion &region, GLenum primitiveMode, int first, int count, bool hardwareClipping)
{
#ifndef KWIN_HAVE_OPENGLES

View File

@ -717,6 +717,11 @@ public:
*/
void unbindArrays();
/**
* Draws count vertices beginning with first.
*/
void draw(GLenum primitiveMode, int first, int count);
/**
* Draws count vertices beginning with first.
*/