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
parent
761df7a56f
commit
15dae59999
|
@ -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 ®ion, GLenum primitiveMode, int first, int count, bool hardwareClipping)
|
||||
{
|
||||
#ifndef KWIN_HAVE_OPENGLES
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue