summaryrefslogtreecommitdiffstats
path: root/opengl/tests/filter/filter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'opengl/tests/filter/filter.cpp')
-rw-r--r--opengl/tests/filter/filter.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/opengl/tests/filter/filter.cpp b/opengl/tests/filter/filter.cpp
index 289e6cc..287ee93 100644
--- a/opengl/tests/filter/filter.cpp
+++ b/opengl/tests/filter/filter.cpp
@@ -140,11 +140,12 @@ int main(int argc, char** argv)
//glDrawTexiOES(0, 0, 0, dim, dim);
+ const GLfloat fdim = dim;
const GLfloat vertices[4][2] = {
- { 0, 0 },
- { 0, dim },
- { dim, dim },
- { dim, 0 }
+ { 0, 0 },
+ { 0, fdim },
+ { fdim, fdim },
+ { fdim, 0 }
};
const GLfloat texCoords[4][2] = {