diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2010-01-29 15:13:36 +0300 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2010-01-29 15:13:36 +0300 |
commit | 6f637c6f038bc7b4e9df9c03ca9a93611947c286 (patch) | |
tree | 6e01262fddb614aa75e057b95bada04b01cd01cd /overlay | |
parent | 705738a3f1e13f1487ee2e40580ec1fac1949af8 (diff) |
Indent, changelog, submodule and language update
Diffstat (limited to 'overlay')
-rw-r--r-- | overlay/opengl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/overlay/opengl.cpp b/overlay/opengl.cpp index df7fc8241..702ea3a11 100644 --- a/overlay/opengl.cpp +++ b/overlay/opengl.cpp @@ -194,10 +194,10 @@ void Context::blit(unsigned int x, unsigned int y, unsigned int w, unsigned int if ((x == 0) && (y == 0) && (w == uiWidth) && (h == uiHeight)) { oglTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, uiWidth, uiHeight, 0, GL_BGRA, GL_UNSIGNED_BYTE, a_ucTexture); } else { - if (w != uiWidth) + if (w != uiWidth) oglPixelStorei(GL_UNPACK_ROW_LENGTH, uiWidth); oglTexSubImage2D(GL_TEXTURE_2D, 0, x, y, w, h, GL_BGRA, GL_UNSIGNED_BYTE, a_ucTexture + 4 * (y * uiWidth + x)); - if (w != uiWidth) + if (w != uiWidth) oglPixelStorei(GL_UNPACK_ROW_LENGTH, 0); } } |