aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_cb_bufferobjects.c
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2019-03-22 14:29:38 +0200
committerTapani Pälli <[email protected]>2019-03-25 07:44:05 +0200
commitec12316489380564ed242118d7cb035c7997e044 (patch)
tree6032b29907efae8de37268974e94297852ef6472 /src/mesa/state_tracker/st_cb_bufferobjects.c
parent9417793fb1453ab90f0dd53bf55904fc02b28215 (diff)
st/mesa: fix compilation warning on storage_flags_to_buffer_flags
(warning: 'const' type qualifier on return type has no effect) Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_cb_bufferobjects.c')
-rw-r--r--src/mesa/state_tracker/st_cb_bufferobjects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c
index 4f77dad7874..080dcccba0b 100644
--- a/src/mesa/state_tracker/st_cb_bufferobjects.c
+++ b/src/mesa/state_tracker/st_cb_bufferobjects.c
@@ -223,7 +223,7 @@ storage_flags_to_buffer_flags(GLbitfield storageFlags)
* usage hint, return a pipe_resource_usage value (PIPE_USAGE_DYNAMIC,
* STREAM, etc).
*/
-static const enum pipe_resource_usage
+static enum pipe_resource_usage
buffer_usage(GLenum target, GLboolean immutable,
GLbitfield storageFlags, GLenum usage)
{