Commit dfc84bd
authored
URenderPipeline: Fix blend state with default/mc shaders on 1.17-1.20.6, properly
The previous workaround for this (5f02456) had incorrectly assumed
that all our code running after it would only touch the global GL state
but not MC's GlBlendState global state, however `BlendState.activate`
(and `UGraphics.Global.blendState`, which forwards to that) does
actually set MC's GlBlendState global state as well, rendering the
workaround largely ineffective.
This commit fixes that by adding an internal method to `BlendState`
which bypasses MC's `GlBlendState`, and then using that method from the
workaround in `URenderPipeline` as well as `ManagedGlState`.
Linear: EM-3509
GitHub: #1201 parent 1d6c4eb commit dfc84bd
File tree
3 files changed
+4
-3
lines changed- src/main/kotlin/gg/essential/universal
- render
- shader
3 files changed
+4
-3
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
| 129 | + | |
131 | 130 | | |
132 | 131 | | |
133 | 132 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
0 commit comments