Drop addQuadVertices from kwinglutils.
KWin does not use GL_QUADS anymore for rendering windows. This makes this method rather useless and isn't used anywhere either.
This commit is contained in:
parent
2e2a7948fb
commit
859dadffd8
2 changed files with 0 additions and 13 deletions
|
@ -170,14 +170,6 @@ int nearestPowerOfTwo(int x)
|
||||||
return 1 << last;
|
return 1 << last;
|
||||||
}
|
}
|
||||||
|
|
||||||
void addQuadVertices(QVector<float>& verts, float x1, float y1, float x2, float y2)
|
|
||||||
{
|
|
||||||
verts << x1 << y1;
|
|
||||||
verts << x1 << y2;
|
|
||||||
verts << x2 << y2;
|
|
||||||
verts << x2 << y1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void pushMatrix()
|
void pushMatrix()
|
||||||
{
|
{
|
||||||
#ifndef KWIN_HAVE_OPENGLES
|
#ifndef KWIN_HAVE_OPENGLES
|
||||||
|
|
|
@ -85,11 +85,6 @@ inline bool KWIN_EXPORT isPowerOfTwo(int x)
|
||||||
**/
|
**/
|
||||||
int KWIN_EXPORT nearestPowerOfTwo(int x);
|
int KWIN_EXPORT nearestPowerOfTwo(int x);
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Quads are not available in OpenGL ES
|
|
||||||
**/
|
|
||||||
KWIN_EXPORT void addQuadVertices(QVector<float>& verts, float x1, float y1, float x2, float y2);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Push a new matrix on the GL matrix stack.
|
* Push a new matrix on the GL matrix stack.
|
||||||
* In GLES this method is a noop. This method should be preferred over glPushMatrix
|
* In GLES this method is a noop. This method should be preferred over glPushMatrix
|
||||||
|
|
Loading…
Reference in a new issue