summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/multisample.c
diff options
context:
space:
mode:
authorGert Wollny <[email protected]>2018-01-18 09:57:27 +0100
committerEmil Velikov <[email protected]>2018-01-19 15:45:57 +0000
commitfef4b16523dea0be0de748fcab7e6367ed8e9542 (patch)
tree1c212a06c4a3cf96722bf29f268264d831cbeb1e /src/mesa/main/multisample.c
parentd0e37599ab822b54ca231b7f155f92156854681d (diff)
mesa: Make numSamples an unsigned int
As a followup to the previous patch propagate the change of numSamples from int to unsigned to gl_config::samples and consequently fix some -Wsign-compare warnings. Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/multisample.c')
-rw-r--r--src/mesa/main/multisample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/multisample.c b/src/mesa/main/multisample.c
index 8ede94b7458..dfe6a371427 100644
--- a/src/mesa/main/multisample.c
+++ b/src/mesa/main/multisample.c
@@ -87,7 +87,7 @@ _mesa_GetMultisamplefv(GLenum pname, GLuint index, GLfloat * val)
switch (pname) {
case GL_SAMPLE_POSITION: {
- if ((int) index >= ctx->DrawBuffer->Visual.samples) {
+ if (index >= ctx->DrawBuffer->Visual.samples) {
_mesa_error( ctx, GL_INVALID_VALUE, "glGetMultisamplefv(index)" );
return;
}