summaryrefslogtreecommitdiff
path: root/src/render/safeopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-14 15:28:48 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-14 15:56:31 +0300
commit939e65b82212236cb9a9910786d5804589fac4dd (patch)
treecd93781fbc6eb2432089eb335c293990c93b1f93 /src/render/safeopenglgraphics.cpp
parentd83cfbeab41795b80444b960b0b604f430d56337 (diff)
downloadplus-939e65b82212236cb9a9910786d5804589fac4dd.tar.gz
plus-939e65b82212236cb9a9910786d5804589fac4dd.tar.bz2
plus-939e65b82212236cb9a9910786d5804589fac4dd.tar.xz
plus-939e65b82212236cb9a9910786d5804589fac4dd.zip
Fix draw test in normalopengl and safeopengl.
Diffstat (limited to 'src/render/safeopenglgraphics.cpp')
-rw-r--r--src/render/safeopenglgraphics.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/render/safeopenglgraphics.cpp b/src/render/safeopenglgraphics.cpp
index 2027128ec..28f34dcde 100644
--- a/src/render/safeopenglgraphics.cpp
+++ b/src/render/safeopenglgraphics.cpp
@@ -180,17 +180,20 @@ void SafeOpenGLGraphics::testDraw()
{
if (OpenGLImageHelper::mTextureType == GL_TEXTURE_2D)
{
- glTexCoord2f(0.0f, 0.0f);
+ glBegin(GL_QUADS);
+ glTexCoord2f(0.0f, 0.781250f);
glVertex2i(0, 0);
- glTexCoord2f(1.0f, 0.0f);
+ glTexCoord2f(0.0f, 0.781250f);
glVertex2i(800, 0);
- glTexCoord2f(1.0f, 1.0f);
+ glTexCoord2f(0.0f, 0.585938f);
glVertex2i(800, 600);
- glTexCoord2f(0.0f, 1.0f);
+ glTexCoord2f(0.0f, 0.585938f);
glVertex2i(0, 600);
+ glEnd();
}
else
{
+ glBegin(GL_QUADS);
glTexCoord2i(0, 0);
glVertex2i(0, 0);
glTexCoord2i(800, 0);
@@ -199,6 +202,7 @@ void SafeOpenGLGraphics::testDraw()
glVertex2i(800, 600);
glTexCoord2i(0, 600);
glVertex2i(0, 600);
+ glEnd();
}
}