Correct glPixelTransfer function

This commit is contained in:
Campbell Barton 2017-03-11 03:02:03 +11:00
parent 15eb83c8b3
commit 103ae04fbc
1 changed files with 3 additions and 3 deletions

View File

@ -331,9 +331,9 @@ void gpu_select_pick_begin(
glDepthFunc(GL_LEQUAL);
}
glPixelTransferi(GL_DEPTH_BIAS, 0.0);
glPixelTransferi(GL_DEPTH_SCALE, 1.0);
/* set just in case */
glPixelTransferf(GL_DEPTH_BIAS, 0.0);
glPixelTransferf(GL_DEPTH_SCALE, 1.0);
float viewport[4];
glGetFloatv(GL_SCISSOR_BOX, viewport);