mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-25 02:50:29 +01:00
st/mesa: Enable ARB_direct_state_access
Assume that all drivers that advertise support for NPOT textures are able to support GL 2.0. v2: Add a comment. Signed-off-by: Fredrik Höglund <fredrik@kde.org> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
a57feba0a3
commit
357bf80caa
1 changed files with 6 additions and 0 deletions
|
|
@ -650,6 +650,12 @@ void st_init_extensions(struct pipe_screen *screen,
|
|||
ARRAY_SIZE(vertex_mapping), PIPE_BUFFER,
|
||||
PIPE_BIND_VERTEX_BUFFER);
|
||||
|
||||
/* ARB_direct_state_access requires OpenGL 2.0. Assume that all drivers
|
||||
* that support NPOT textures are able to support GL 2.0.
|
||||
*/
|
||||
if (extensions->ARB_texture_non_power_of_two)
|
||||
extensions->ARB_direct_state_access = GL_TRUE;
|
||||
|
||||
if (extensions->ARB_stencil_texturing)
|
||||
extensions->ARB_texture_stencil8 = GL_TRUE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue