* GLSM Improvements
* Add an IntegerStateStack
* Use IntegerStateStack to track the active texture unit
* Track activeTextureUnit with GL_TEXTURE_BIT
* Bugfix - Don't include color with GL_COLOR_BUFFER_BIT
* Fully test glPush/PopAttrib for GL_COLOR_BUFFER_BIT
* Split GLStateManager init into two pieces
* OpenGL State Debugging
* Add OpenGLDebugging
* Enhance GLSM to be aware of single vs multiple return values for glGet
* Capacity vs Remaining (needs NPE saftey?)
Int -> float
glLoadMatrix
* Update src/main/java/com/gtnewhorizons/angelica/glsm/debug/OpenGLDebugging.java
Co-authored-by: makamys <[email protected]>
* Update src/main/java/com/gtnewhorizons/angelica/glsm/debug/OpenGLDebugging.java
Co-authored-by: makamys <[email protected]>
* tweaks
* Fixes
* Have checkGLSM compare matricies differently than other things
* Each Texture Unit has it's own TextureMatrix stack
* Switch to a ClientTickEvent and directly query the Keyboard so we can run the checkGLSM in GUIs and other places
* Remove default keybind
* Don't trigger quite so often
---------
Co-authored-by: makamys <[email protected]>
* More Caching
* Pull TextureTracker & TextureInfoCache out of Iris and into GLSM
* Cache more TextureInfo state
* GLSM: glTexParameter, glGetTexParameter(i|f), glGetTexLevelParameteri
* Move IrisRenderSystem -> GLSM.RenderSystem
* Ensure DSA works properly with GLSM
* Further updates to DSA for texParameter/getTexParameter
* A few more cached fields for TextureInfo
* Properly handle deleteTextures
* Ensure anyone crazy enough to use an Int/FloatBuffer for single value params get redirected
* Add optional runtime disabling of GLSM
* Switch checkGLError from an inject to a redirect, hopefully fewer allocations
* Fewer allocations for clearBufferState
* Microoptimization for (setup|clear)BufferState
* Move GLDebug and gl capabilitiesinto angelica/glsm instead of Iris
* Wire up GLDebug.pushGroup && popGroup via mixins if lwjgl debug is enabled (useful for api trace)
* Expose original translation for tesselator, so we can reset it after doing VBO stuff
other small VBO cleanup
* Properly manage the tessellator's state...
* Redirect negative display list calls to VBOs globally
Fixes Smart Moving not rendering player models
* Remove now redundant glCallList redirects
* Make VertexBuffer keep track of its own draw mode
* Whitelist carpentersblocks for off main thread rendering
* Add bounds checking to WorldSlice,
* Add preliminary `IThreadSafeISBRH` support
* Update TODO
* Adjust min y
* remove unnecessary try/catch
* * Keep track of what should be rendered on the main thread
* Update AngelicaBlockSafetyRegistry to handle vanilla blocks, and ISBHR's
* of -> set
* Handle state changes in display lists correctly in GLSM
* Add some documentation so it's slightly more clear as to what's happening
---------
Co-authored-by: Jason Mitchell <[email protected]>
* Fix VBO crash
* Use integer.min_value for VBOized display list IDs, and prevent a NPE when trying to delete a VBOized display list
* Offset when accessing the vertexBuffers list
* DragonAPI compat - Only run checkSettings when the world is loaded