diff options
author | Travis Watkins <travis.watkins@linaro.org> | 2011-07-21 11:38:06 -0500 |
---|---|---|
committer | Travis Watkins <travis.watkins@linaro.org> | 2011-07-21 11:38:06 -0500 |
commit | c7a0a222b7b1f49d1f62532e7fc56072f6e885c5 (patch) | |
tree | 78c92678e41762a51291a49065c77e3df218820c | |
parent | 51e842cb2a3165cbf930d652a31db3abe7731081 (diff) | |
download | mobilebling-c7a0a222b7b1f49d1f62532e7fc56072f6e885c5.tar.gz mobilebling-c7a0a222b7b1f49d1f62532e7fc56072f6e885c5.tar.bz2 |
fix OBS conversion
-rw-r--r-- | plugins/opengl/src/vertexbuffer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/opengl/src/vertexbuffer.cpp b/plugins/opengl/src/vertexbuffer.cpp index 15ec2e5..00c0092 100644 --- a/plugins/opengl/src/vertexbuffer.cpp +++ b/plugins/opengl/src/vertexbuffer.cpp @@ -333,9 +333,9 @@ int PrivateVertexBuffer::render (const GLMatrix &projection, } //convert paint attribs to 0-1 range - attribs[0] = (attrib.opacity & 0xFF) / 255.0f; - attribs[1] = (attrib.brightness & 0xFF) / 255.0f; - attribs[2] = (attrib.saturation & 0xFF) / 255.0f; + attribs[0] = attrib.opacity / 65535.0f; + attribs[1] = attrib.brightness / 65535.0f; + attribs[2] = attrib.saturation / 65535.0f; program->setUniform3f ("paintAttrib", attribs[0], attribs[1], attribs[2]); program->setUniform4f ("params", params[0], params[1], params[2], params[3]); |