summaryrefslogtreecommitdiffstats
path: root/opengl/tests/fillrate/fillrate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'opengl/tests/fillrate/fillrate.cpp')
-rw-r--r--opengl/tests/fillrate/fillrate.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/opengl/tests/fillrate/fillrate.cpp b/opengl/tests/fillrate/fillrate.cpp
index 1d9b026..2db63d7 100644
--- a/opengl/tests/fillrate/fillrate.cpp
+++ b/opengl/tests/fillrate/fillrate.cpp
@@ -91,11 +91,13 @@ int main(int argc, char** argv)
}
}
+ const GLfloat fh = h;
+ const GLfloat fw = w;
const GLfloat vertices[4][2] = {
- { 0, 0 },
- { 0, h },
- { w, h },
- { w, 0 }
+ { 0, 0 },
+ { 0, fh },
+ { fw, fh },
+ { fw, 0 }
};
const GLfloat texCoords[4][2] = {