summaryrefslogtreecommitdiffstats
path: root/src/graphics/opengl
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-08-11 17:17:04 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-08-11 17:17:04 +0200
commit7f80ca297154809523cd533edf1842ab1ae391aa (patch)
tree08eb658d2dad62ac683e55dc89cc97bc898fd95c /src/graphics/opengl
parent63257034c946d40fb3ecc73a9ee3dc9d1e0a1e34 (diff)
downloadcolobot-7f80ca297154809523cd533edf1842ab1ae391aa.tar.gz
colobot-7f80ca297154809523cd533edf1842ab1ae391aa.tar.bz2
colobot-7f80ca297154809523cd533edf1842ab1ae391aa.zip
Render mode setting, refactoring
- finished SetState in CEngine - refactored Size and IntSize back to Point and IntPoint - other minor changes in CEngine
Diffstat (limited to 'src/graphics/opengl')
-rw-r--r--src/graphics/opengl/gldevice.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/graphics/opengl/gldevice.cpp b/src/graphics/opengl/gldevice.cpp
index cef372f..4c36053 100644
--- a/src/graphics/opengl/gldevice.cpp
+++ b/src/graphics/opengl/gldevice.cpp
@@ -122,7 +122,7 @@ bool Gfx::CGLDevice::Create()
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
- glViewport(0, 0, m_config.size.w, m_config.size.h);
+ glViewport(0, 0, m_config.size.x, m_config.size.y);
m_lights = std::vector<Gfx::Light>(GL_MAX_LIGHTS, Gfx::Light());
@@ -390,8 +390,8 @@ Gfx::Texture Gfx::CGLDevice::CreateTexture(ImageData *data, const Gfx::TextureCr
Gfx::Texture result;
result.valid = true;
- result.size.w = data->surface->w;
- result.size.h = data->surface->h;
+ result.size.x = data->surface->w;
+ result.size.y = data->surface->h;
// Use & enable 1st texture stage
glActiveTexture(GL_TEXTURE0);