mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-04 13:33:34 +00:00
Put back apple instancing fix;
This commit is contained in:
parent
73b50c22cd
commit
d1923ce711
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue