Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-03-10 19:02:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-03-10 19:03:47 +0300
commit103ae04fbc90830f643581514c1fe21e271f7424 (patch)
tree88f880172d2d62b025a5bbd38d8ac0b97a223ed7
parent15eb83c8b375267c4dad5d86424d50316db71a8a (diff)
Correct glPixelTransfer function
-rw-r--r--source/blender/gpu/intern/gpu_select_pick.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/gpu/intern/gpu_select_pick.c b/source/blender/gpu/intern/gpu_select_pick.c
index 4d4ff5e7e68..0a77420fa25 100644
--- a/source/blender/gpu/intern/gpu_select_pick.c
+++ b/source/blender/gpu/intern/gpu_select_pick.c
@@ -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);