Skip to content

Commit c492306

Browse files
committed
sdl_glimp: require VAO explicitly
1 parent 1b29414 commit c492306

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/engine/sys/sdl_glimp.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,8 +1768,8 @@ static rserr_t GLimp_StartDriverAndSetMode( int mode, bool fullscreen, bool bord
17681768
rserr_t err = GLimp_SetMode(mode, fullscreen, bordered);
17691769

17701770
const char* glRequirements =
1771-
"You need a graphics card with drivers supporting at least\n"
1772-
"OpenGL 3.2 or OpenGL 2.1 with EXT_framebuffer_object.";
1771+
"You need a graphics card with drivers supporting at least OpenGL 3.2\n"
1772+
"or OpenGL 2.1 with EXT_framebuffer_object and ARB_vertex_array_object.";
17731773

17741774
switch ( err )
17751775
{
@@ -2283,6 +2283,9 @@ static void GLimp_InitExtensions()
22832283
glConfig2.textureAnisotropy = std::max( std::min( r_ext_texture_filter_anisotropic.Get(), glConfig2.maxTextureAnisotropy ), 1.0f );
22842284
}
22852285

2286+
// made required in OpenGL 3.0
2287+
LOAD_EXTENSION( ExtFlag_REQUIRED | ExtFlag_CORE, ARB_vertex_array_object );
2288+
22862289
/* We call RV300 the first generation of R300 cards, to make a difference
22872290
with RV400 and RV500 cards that are also supported by the Mesa r300 driver.
22882291

0 commit comments

Comments
 (0)