Enable GPU skinning for GL 3.3+, (#5902)
only do GPU skinning if the shader supports bone IDs.
This commit is contained in:
parent
10a889c482
commit
f1d602029c
1 changed files with 9 additions and 2 deletions
|
|
@ -322,7 +322,11 @@
|
|||
#endif
|
||||
#ifndef SUPPORT_GPU_SKINNING
|
||||
// GPU skinning disabled by default, some GPUs do not support more than 8 VBOs
|
||||
#define SUPPORT_GPU_SKINNING 0
|
||||
#if defined (GRAPHICS_API_OPENGL_33) || defined (GRAPHICS_API_OPENGL_43)
|
||||
#define SUPPORT_GPU_SKINNING 1
|
||||
#else
|
||||
#define SUPPORT_GPU_SKINNING 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue