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:
Zack Middleton committed 2024-06-05 21:36:48 -05:00
1 parent b25a3c6e4d
commit 98b9008c0d
5 files changed
+53 -11

No files matched your search

+3
View File
@@ -1433,6 +1433,9 @@ typedef struct {
qboolean vertexArrayObject;
qboolean directStateAccess;
int maxVertexAttribs;
qboolean gpuVertexAnimation;
GLenum vaoCacheGlIndexType; // GL_UNSIGNED_INT or GL_UNSIGNED_SHORT
size_t vaoCacheGlIndexSize; // must be <= sizeof( vaoCacheGlIndex_t )