mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
inform driver of changed wrap/filter parameters due to binding of nv_texrect texture
This commit is contained in:
parent
4c6b629b38
commit
c71ee917e3
1 changed files with 8 additions and 0 deletions
|
|
@ -818,6 +818,14 @@ _mesa_BindTexture( GLenum target, GLuint texName )
|
|||
newTexObj->WrapT = GL_CLAMP_TO_EDGE;
|
||||
newTexObj->WrapR = GL_CLAMP_TO_EDGE;
|
||||
newTexObj->MinFilter = GL_LINEAR;
|
||||
if (ctx->Driver.TexParameter) {
|
||||
static const GLfloat fparam_wrap[1] = {(GLfloat) GL_CLAMP_TO_EDGE};
|
||||
static const GLfloat fparam_filter[1] = {(GLfloat) GL_LINEAR};
|
||||
(*ctx->Driver.TexParameter)( ctx, target, newTexObj, GL_TEXTURE_WRAP_S, fparam_wrap );
|
||||
(*ctx->Driver.TexParameter)( ctx, target, newTexObj, GL_TEXTURE_WRAP_T, fparam_wrap );
|
||||
(*ctx->Driver.TexParameter)( ctx, target, newTexObj, GL_TEXTURE_WRAP_R, fparam_wrap );
|
||||
(*ctx->Driver.TexParameter)( ctx, target, newTexObj, GL_TEXTURE_MIN_FILTER, fparam_filter );
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue