]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_backend.c
fix errors and warnings in MSVC when compiling as C++
[xonotic/darkplaces.git] / gl_backend.c
index 9647420f81f409b07da9f198228fb3dca79ca86a..1310985aa20b11ba67cb6754f626c54b517f83d9 100644 (file)
@@ -287,7 +287,7 @@ void GL_SetupView_Orientation_FromEntity(const matrix4x4_t *matrix)
        Matrix4x4_ConcatRotate(&basematrix, 90, 0, 0, 1);
        Matrix4x4_Concat(&backend_viewmatrix, &basematrix, &tempmatrix);
 
-       GL_SetMirrorState(v_flipped.integer);
+       GL_SetMirrorState(v_flipped.integer != 0);
        if(v_flipped_state)
        {
                Matrix4x4_Transpose(&basematrix, &backend_viewmatrix);