summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/teximage.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2016-10-07 14:28:21 -0600
committerBrian Paul <brianp@vmware.com>2016-10-13 17:38:49 -0600
commita710c21ac200fc1c80a6209862e837f0a75f4cc5 (patch)
tree7b00bb81989736169eea549dc1e4b09fae7471f3 /src/mesa/main/teximage.c
parent99d790538de2e7d7d489a8638b13c5aa069c27c3 (diff)
downloadexternal_mesa3d-a710c21ac200fc1c80a6209862e837f0a75f4cc5.zip
external_mesa3d-a710c21ac200fc1c80a6209862e837f0a75f4cc5.tar.gz
external_mesa3d-a710c21ac200fc1c80a6209862e837f0a75f4cc5.tar.bz2
mesa: remove 'params' parameter from ctx->Driver.TexParameter()
None of the drivers which implement this hook do anything with the texture parameter value. Drivers just look at the pname and set a dirty flag if needed. We were doing some ugly casting and type conversion to setup the argument so that all goes away. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r--src/mesa/main/teximage.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 411ec49..bc3b76a 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -5082,12 +5082,10 @@ texture_buffer_range(struct gl_context *ctx,
if (ctx->Driver.TexParameter) {
if (offset != oldOffset) {
- ctx->Driver.TexParameter(ctx, texObj, GL_TEXTURE_BUFFER_OFFSET,
- (const GLfloat *) &offset);
+ ctx->Driver.TexParameter(ctx, texObj, GL_TEXTURE_BUFFER_OFFSET);
}
if (size != oldSize) {
- ctx->Driver.TexParameter(ctx, texObj, GL_TEXTURE_BUFFER_SIZE,
- (const GLfloat *) &size);
+ ctx->Driver.TexParameter(ctx, texObj, GL_TEXTURE_BUFFER_SIZE);
}
}