Fully track GL State changes (#83)

* Fully track GL State changes
* Now compatible with glPushAttrib, and glPopAttrib
* Cache mask -> features using an Int2ObjectMap
This commit is contained in:
Jason Mitchell authored and GitHub committed 2023-12-28 07:55:16 -08:00
1 parent c3216007c1
commit 6624a9adb3
41 files changed
+1088 -256

No files matched your search

@@ -46,7 +46,7 @@ public class ProgramSamplers {
// We need to keep the active texture intact, since if we mess it up
// in the middle of RenderType setup, bad things will happen.
int activeTexture = GLStateManager.getActiveTexture();
int activeTexture = GLStateManager.getActiveTextureUnit();
for (SamplerBinding samplerBinding : samplerBindings) {
samplerBinding.update();