1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-02 12:33:52 +00:00

Put back apple instancing fix;

This commit is contained in:
bjorn 2018-08-01 15:40:43 -07:00
parent 73b50c22cd
commit d1923ce711

View file

@ -791,6 +791,10 @@ void lovrGpuDraw(DrawCommand* command) {
void lovrGpuPresent() { void lovrGpuPresent() {
memset(&state.stats, 0, sizeof(state.stats)); 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() { GraphicsLimits lovrGraphicsGetLimits() {