mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
mesa: fix float->int mapping for glGetIntegerv(GL_DEPTH_CLEAR_VALUE)
(cherry picked from commit 8124faf89d)
Conflicts:
src/mesa/main/get.c
This commit is contained in:
parent
a86776dba4
commit
0f5c71afd9
1 changed files with 1 additions and 1 deletions
|
|
@ -2137,7 +2137,7 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params )
|
|||
params[0] = (GLfloat)(ctx->DrawBuffer->Visual.depthBits);
|
||||
break;
|
||||
case GL_DEPTH_CLEAR_VALUE:
|
||||
params[0] = (GLfloat)(ctx->Depth.Clear);
|
||||
params[0] = ctx->Depth.Clear;
|
||||
break;
|
||||
case GL_DEPTH_FUNC:
|
||||
params[0] = ENUM_TO_FLOAT(ctx->Depth.Func);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue