summaryrefslogtreecommitdiff
path: root/src/render
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
parentd83cfbeab41795b80444b960b0b604f430d56337 (diff)
downloadmanaplus-939e65b82212236cb9a9910786d5804589fac4dd.tar.gz
manaplus-939e65b82212236cb9a9910786d5804589fac4dd.tar.bz2
manaplus-939e65b82212236cb9a9910786d5804589fac4dd.tar.xz
manaplus-939e65b82212236cb9a9910786d5804589fac4dd.zip
Fix draw test in normalopengl and safeopengl.
Diffstat (limited to 'src/render')
-rw-r--r--src/render/normalopenglgraphics.cpp8
-rw-r--r--src/render/safeopenglgraphics.cpp12
2 files changed, 12 insertions, 8 deletions
diff --git a/src/render/normalopenglgraphics.cpp b/src/render/normalopenglgraphics.cpp
index 3dd5392ae..3aedb2990 100644
--- a/src/render/normalopenglgraphics.cpp
+++ b/src/render/normalopenglgraphics.cpp
@@ -345,10 +345,10 @@ void NormalOpenGLGraphics::testDraw()
{
GLfloat tex[] =
{
- 0.0f, 0.0f,
- 1.0f, 0.0f,
- 1.0f, 1.0f,
- 0.0f, 1.0f
+ 0.0f, 0.781250f,
+ 0.0f, 0.781250f,
+ 0.0f, 0.585938f,
+ 0.0f, 0.585938f
};
GLint vert[] =
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();
}
}