Put back apple instancing fix;

This commit is contained in:
bjorn 2018-08-01 15:40:43 -07:00
parent 73b50c22cd
commit d1923ce711
1 changed files with 4 additions and 0 deletions

View File

@ -791,6 +791,10 @@ void lovrGpuDraw(DrawCommand* command) {
void lovrGpuPresent() {
memset(&state.stats, 0, sizeof(state.stats));
#ifdef __APPLE__
// For some reason instancing doesn't work on macOS unless you reset the shader every frame
lovrGpuUseProgram(0);
#endif
}
GraphicsLimits lovrGraphicsGetLimits() {