aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2018-03-22 23:32:54 +0100
committerAndreas Grois <andi@grois.info>2018-03-22 23:32:54 +0100
commit7bfd42aca8b749e736490222048e4bea7e965b44 (patch)
tree202d11464d74a79fa358d9d0c03209d73a6d32b7
parent81863349bfc7fede772eac9b6fd8024f49380e42 (diff)
Fix compiler warning in MSVC
-rw-r--r--BuddhaTest/src/BuddhaTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/BuddhaTest/src/BuddhaTest.cpp b/BuddhaTest/src/BuddhaTest.cpp
index 3af5f44..2064d06 100644
--- a/BuddhaTest/src/BuddhaTest.cpp
+++ b/BuddhaTest/src/BuddhaTest.cpp
@@ -167,8 +167,8 @@ int main(int argc, char * argv[])
GLint colorScaleUniformFragmentHandle = glGetUniformLocation(VertexAndFragmentShaders, "colorScale");
glUniform1ui(widthUniformFragmentHandle, settings.imageWidth);
glUniform1ui(heightUniformFragmentHandle, bufferHeight);
- glUniform1f(gammaUniformFragmentHandle, settings.pngGamma);
- glUniform1f(colorScaleUniformFragmentHandle,settings.pngColorScale);
+ glUniform1f(gammaUniformFragmentHandle, float(settings.pngGamma));
+ glUniform1f(colorScaleUniformFragmentHandle,float(settings.pngColorScale));
glClearColor(0.0f, 0.0f, 0.4f, 0.0f);