Commit eb1c2fbc authored by Dalai Felinto's avatar Dalai Felinto
Browse files

pass bgl_RenderedStereoEye as int

parent af767cc7
Loading
Loading
Loading
Loading
+1 −1
Changes for space_view3d_virtual_reality/opengl_helper.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -183,7 +183,7 @@ def setup_uniforms(program, color_id, width, height, is_left):
    if uniform != -1: glUniform1f(uniform, height)

    uniform = glGetUniformLocation(program, "bgl_RenderedStereoEye")
    if uniform != -1: glUniform1f(uniform, 0 if is_left else 1)
    if uniform != -1: glUniform1i(uniform, 0 if is_left else 1)

def bindcode(image):
    """load the image in the graphic card if necessary"""