Showing the changes to libraries/render-utils/src/Model.cpp (1 of 5 files). Show all
Unified · Split
| @@ -935,8 +935,8 @@ bool Model::renderCore(float alpha, RenderMode mode, RenderArgs* args) { · 934 unmodified lines | ||
| 935 | 935 | glPushMatrix(); |
| 936 | 936 | #endif |
| 937 | 937 | |
| 938 | − ::gpu::GLBackend::renderBatch(batch); | |
| 939 | − | |
| 938 | + ::gpu::GLBackend::renderBatch(batch, true); // force sync with gl state here | |
| 939 | + | |
| 940 | 940 | #if defined(ANDROID) |
| 941 | 941 | #else |
| 942 | 942 | glPopMatrix(); |
| @@ -1846,6 +1846,7 @@ void Model::endScene(RenderMode mode, RenderArgs* args) { · 903 unmodified lines | ||
| 1846 | 1846 | } |
| 1847 | 1847 | |
| 1848 | 1848 | gpu::GLBackend backend; |
| 1849 | + backend.syncCache(); // force sync with gl state here | |
| 1849 | 1850 | |
| 1850 | 1851 | if (args) { |
| 1851 | 1852 | glm::mat4 proj; |