FWGS / xash3d

DEPRECATED in favor of https://github.com/FWGS/xash3d-fwgs. Only bugfixes are accepted.
https://xash.su
GNU General Public License v3.0
551 stars 107 forks source link

Fix crash bug when GL_EXT_compiled_vertex_array does not exist. #346

Closed weimzh closed 6 years ago

weimzh commented 6 years ago

glDrawArrays() is a standard OpenGL 1.1 function, which does not belong to GL_EXT_compiled_vertex_array extension: https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_compiled_vertex_array.txt

The crash happened on Intel HD Graphics 520 + Mac OS X 10.13.3, as pglDrawArrays is a NULL pointer if GL_EXT_compiled_vertex_array does not exist.

a1batross commented 6 years ago

Yes, it seems a mistake. Merging.