summaryrefslogtreecommitdiffstats
path: root/src/gallium/include/state_tracker
diff options
context:
space:
mode:
authorGert Wollny <[email protected]>2018-01-18 09:57:26 +0100
committerEmil Velikov <[email protected]>2018-01-19 15:45:57 +0000
commitd0e37599ab822b54ca231b7f155f92156854681d (patch)
tree6271791495c83dcc08ae905cfec81e8b5bb3e91b /src/gallium/include/state_tracker
parent7a2c87177ada941259bf35a982e67bfea0dd1d26 (diff)
gallium: Make (num_)samples an unsigned int
According to the ARB_multisample num_samples is a non-negative integer. Consequently define it as such, fail in glx/choose_visual if a negative number is given. v2: split patch into gallium and mesa part Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/include/state_tracker')
-rw-r--r--src/gallium/include/state_tracker/st_api.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/include/state_tracker/st_api.h b/src/gallium/include/state_tracker/st_api.h
index f95f65f1560..ec6e7844b87 100644
--- a/src/gallium/include/state_tracker/st_api.h
+++ b/src/gallium/include/state_tracker/st_api.h
@@ -202,7 +202,7 @@ struct st_visual
enum pipe_format color_format;
enum pipe_format depth_stencil_format;
enum pipe_format accum_format;
- int samples;
+ unsigned samples;
/**
* Desired render buffer.