if (!bufObj)
return;
-
- bufObj->UsageHistory |= USAGE_ELEMENT_ARRAY_BUFFER;
} else {
bufObj = NULL;
}
ctx->Array.ArrayBufferObj->UsageHistory |= USAGE_ARRAY_BUFFER;
return &ctx->Array.ArrayBufferObj;
case GL_ELEMENT_ARRAY_BUFFER_ARB:
- if (ctx->Array.VAO->IndexBufferObj)
- ctx->Array.VAO->IndexBufferObj->UsageHistory
- |= USAGE_ELEMENT_ARRAY_BUFFER;
return &ctx->Array.VAO->IndexBufferObj;
case GL_PIXEL_PACK_BUFFER_EXT:
return &ctx->Pack.BufferObj;
USAGE_TRANSFORM_FEEDBACK_BUFFER = 0x10,
USAGE_PIXEL_PACK_BUFFER = 0x20,
USAGE_ARRAY_BUFFER = 0x40,
- USAGE_ELEMENT_ARRAY_BUFFER = 0x80,
USAGE_DISABLE_MINMAX_CACHE = 0x100,
} gl_buffer_usage;
*/
if (st_obj->Base.UsageHistory & USAGE_ARRAY_BUFFER)
ctx->NewDriverState |= ST_NEW_VERTEX_ARRAYS;
- /* if (st_obj->Base.UsageHistory & USAGE_ELEMENT_ARRAY_BUFFER) */
- /* ctx->NewDriverState |= TODO: Handle indices as gallium state; */
if (st_obj->Base.UsageHistory & USAGE_UNIFORM_BUFFER)
ctx->NewDriverState |= ST_NEW_UNIFORM_BUFFER;
if (st_obj->Base.UsageHistory & USAGE_SHADER_STORAGE_BUFFER)