summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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();
}
}