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

@@ -39,7 +39,7 @@ public class TextureTracker {
if (lockBindCallback) {
return;
}
if (GLStateManager.getActiveTexture() == 0) {
if (GLStateManager.getActiveTextureUnit() == 0) {
lockBindCallback = true;
if (bindTextureListener != null) {
bindTextureListener.run();