mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-19 10:20:30 +01:00
mesa: call FLUSH_CURRENT() for GL_CURRENT_TEXTURE_COORDS query
This commit is contained in:
parent
f9b8562f32
commit
b062a119ff
2 changed files with 5 additions and 1 deletions
|
|
@ -276,6 +276,7 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params )
|
|||
case GL_CURRENT_TEXTURE_COORDS:
|
||||
{
|
||||
const GLuint texUnit = ctx->Texture.CurrentUnit;
|
||||
FLUSH_CURRENT(ctx, 0);
|
||||
params[0] = FLOAT_TO_BOOLEAN(ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][0]);
|
||||
params[1] = FLOAT_TO_BOOLEAN(ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][1]);
|
||||
params[2] = FLOAT_TO_BOOLEAN(ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][2]);
|
||||
|
|
@ -2102,6 +2103,7 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params )
|
|||
case GL_CURRENT_TEXTURE_COORDS:
|
||||
{
|
||||
const GLuint texUnit = ctx->Texture.CurrentUnit;
|
||||
FLUSH_CURRENT(ctx, 0);
|
||||
params[0] = ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][0];
|
||||
params[1] = ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][1];
|
||||
params[2] = ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][2];
|
||||
|
|
@ -3928,6 +3930,7 @@ _mesa_GetIntegerv( GLenum pname, GLint *params )
|
|||
case GL_CURRENT_TEXTURE_COORDS:
|
||||
{
|
||||
const GLuint texUnit = ctx->Texture.CurrentUnit;
|
||||
FLUSH_CURRENT(ctx, 0);
|
||||
params[0] = IROUND(ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][0]);
|
||||
params[1] = IROUND(ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][1]);
|
||||
params[2] = IROUND(ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][2]);
|
||||
|
|
|
|||
|
|
@ -176,7 +176,8 @@ StateVars = [
|
|||
"ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][1]",
|
||||
"ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][2]",
|
||||
"ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texUnit][3]"],
|
||||
"const GLuint texUnit = ctx->Texture.CurrentUnit;", None ),
|
||||
"""const GLuint texUnit = ctx->Texture.CurrentUnit;
|
||||
FLUSH_CURRENT(ctx, 0);""", None ),
|
||||
( "GL_DEPTH_BIAS", GLfloat, ["ctx->Pixel.DepthBias"], "", None ),
|
||||
( "GL_DEPTH_BITS", GLint, ["ctx->DrawBuffer->Visual.depthBits"],
|
||||
"", None ),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue