summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Watkins <travis.watkins@linaro.org>2011-06-13 16:23:21 -0500
committerTravis Watkins <travis.watkins@linaro.org>2011-08-03 14:01:34 +0100
commit3f7a8c91dca3f43511667ae2429f775b9b2c3f7a (patch)
tree2fc8c07b2a8582077e2490fc01ba494111206470
parente31d26b91875079c789d1997a444b75b39beee8a (diff)
downloadmobileperf-3f7a8c91dca3f43511667ae2429f775b9b2c3f7a.tar.gz
mobileperf-3f7a8c91dca3f43511667ae2429f775b9b2c3f7a.tar.bz2
fix compile error when using desktop GL codepath
-rw-r--r--plugins/opengl/src/paint.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/opengl/src/paint.cpp b/plugins/opengl/src/paint.cpp
index 580837e..d52c5d3 100644
--- a/plugins/opengl/src/paint.cpp
+++ b/plugins/opengl/src/paint.cpp
@@ -839,7 +839,7 @@ enableLegacyOBSAndRender (GLScreen *gs,
glTexEnvf (GL_TEXTURE_ENV, GL_OPERAND0_RGB, GL_SRC_COLOR);
glTexEnvf (GL_TEXTURE_ENV, GL_OPERAND1_RGB, GL_SRC_COLOR);
- if (GL::canDoSlightlySaturated && attrib.getSaturation () > 0)
+ if (GL::canDoSlightlySaturated && attrib.saturation > 0)
{
glTexEnvf (GL_TEXTURE_ENV, GL_COMBINE_ALPHA, GL_REPLACE);
glTexEnvf (GL_TEXTURE_ENV, GL_SOURCE0_ALPHA, GL_PREVIOUS);
@@ -870,7 +870,7 @@ enableLegacyOBSAndRender (GLScreen *gs,
glTexEnvf (GL_TEXTURE_ENV, GL_SOURCE0_ALPHA, GL_PREVIOUS);
glTexEnvf (GL_TEXTURE_ENV, GL_OPERAND0_ALPHA, GL_SRC_ALPHA);
- constant[3] = attrib.getSaturation () / 65535.0f;
+ constant[3] = attrib.saturation / 65535.0f;
glTexEnvfv (GL_TEXTURE_ENV, GL_TEXTURE_ENV_COLOR, constant);
@@ -1025,7 +1025,7 @@ GLWindow::glDrawTexture (GLTexture *texture,
enableLegacyOBSAndRender (priv->gScreen, this, texture, transform,
attrib, filter, mask);
else
- priv->vertexBuffer->render (transofmr, attrib);
+ priv->vertexBuffer->render (transform, attrib);
#endif
texture->disable ();