Fix some truncation warnings for the benefit of MSVC.

rug.cpp(1266): warning C4305: 'argument': truncation from 'double' to 'GLclampf'
    tour.cpp(629): warning C4305: '=': truncation from 'int' to 'bool'
This commit is contained in:
Arthur O'Dwyer committed 2018-07-08 22:19:42 -07:00
1 parent f10f5a29b2
commit de8926ac5d
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -1263,7 +1263,7 @@ void drawRugScene() {
glBindTexture( GL_TEXTURE_2D, alternate_texture);
if(backcolor == 0)
glClearColor(0.05,0.05,0.05,1);
glClearColor(0.05f,0.05f,0.05f,1.0f);
else
glhr::colorClear(backcolor << 8 | 0xFF);
#ifdef GLES_ONLY