mesa: fix a typo in map_named_buffer_range
authorMarek Olšák <marek.olsak@amd.com>
Wed, 24 Apr 2019 17:44:12 +0000 (13:44 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 28 Jun 2019 19:41:25 +0000 (15:41 -0400)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/bufferobj.c

index b15e9f36e14c1ff0ac192b95d9f6e98358f67d69..71bc9312f45504608188fc72615df7e49db9e5da 100644 (file)
@@ -3279,7 +3279,7 @@ _mesa_MapNamedBufferRange_no_error(GLuint buffer, GLintptr offset,
 
 static void *
 map_named_buffer_range(GLuint buffer, GLintptr offset, GLsizeiptr length,
-                       GLbitfield access, bool dst_ext, const char *func)
+                       GLbitfield access, bool dsa_ext, const char *func)
 {
    GET_CURRENT_CONTEXT(ctx);
    struct gl_buffer_object *bufObj = NULL;
@@ -3290,7 +3290,7 @@ map_named_buffer_range(GLuint buffer, GLintptr offset, GLsizeiptr length,
       return NULL;
    }
 
-   if (dst_ext) {
+   if (dsa_ext) {
       bufObj = _mesa_lookup_bufferobj(ctx, buffer);
       if (!_mesa_handle_bind_buffer_gen(ctx, buffer, &bufObj, func))
          return NULL;