mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
mesa: remove redundant flagging USAGE_ARRAY_BUFFER
We do that in gl*Pointer, glBindVertexBuffer, etc. Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13513>
This commit is contained in:
parent
2f059b861e
commit
87b9a9667a
1 changed files with 0 additions and 2 deletions
|
|
@ -127,8 +127,6 @@ get_buffer_target(struct gl_context *ctx, GLenum target)
|
|||
|
||||
switch (target) {
|
||||
case GL_ARRAY_BUFFER_ARB:
|
||||
if (ctx->Array.ArrayBufferObj)
|
||||
ctx->Array.ArrayBufferObj->UsageHistory |= USAGE_ARRAY_BUFFER;
|
||||
return &ctx->Array.ArrayBufferObj;
|
||||
case GL_ELEMENT_ARRAY_BUFFER_ARB:
|
||||
return &ctx->Array.VAO->IndexBufferObj;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue