OpenGL2: Use CPU vertex animation if too few vertex attributes
OpenGL ES has a minimum of 8 vertex attributes while desktop OpenGL has a minimum of 16. Vertex animation uses attributes 10 to 12.
This commit is contained in:
1 parent
b25a3c6e4d
commit
98b9008c0d
5 files changed
+53
-11
No files matched your search
@@ -664,6 +664,12 @@ static qboolean R_LoadMD3(model_t * mod, int lod, void *buffer, int bufferSize,
|
||||
surf++;
|
||||
}
|
||||
|
||||
if (mdvModel->numFrames > 1 && !glRefConfig.gpuVertexAnimation)
|
||||
{
|
||||
mdvModel->numVaoSurfaces = 0;
|
||||
mdvModel->vaoSurfaces = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
srfVaoMdvMesh_t *vaoSurf;
|
||||
|
||||
|
||||
Reference in new issue
Block a user