]> git.xonotic.org Git - xonotic/darkplaces.git/commit
Do not build VBOs on a dedicated server.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 19 Oct 2018 07:38:00 +0000 (07:38 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 19 Oct 2018 07:38:00 +0000 (07:38 +0000)
commitd65ddd94d473b4925aa589ae2c32a3cf1c250e31
tree8e86e07ccc012aeb38da8d1bc16b14aad5c7018e
parente5856889727824ed7e1ddea777b16c37ea4043ad
Do not build VBOs on a dedicated server.

Fixes crash at startup of dedicated server in Quake and Xonotic
(probably in everything).

The only reason why this ever worked before was that Mod_BuildVBOs's
main callee R_Mesh_CreateMeshBuffer did a GL2 feature test before
calling into anything VBO related (and on a dedicated server, which does
not initialize GL, the test always returns false); however now that we
require GL32, the feature test is gone and thus the crash happened. An
explicit check for being a dedicated server fixes that.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12469 d7cf8633-e32d-0410-b094-e92efae38249
model_shared.c