mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-22 05:12:16 +00:00
SDL GPU backend, TESR Batching/caching API, Tracy Integration (#1993)
This commit is contained in:
1 parent
413df76ad4
commit
8da561d3b6
647 files changed
+60152
-5331
No files matched your search
@@ -11,7 +11,7 @@ import net.coderbot.iris.gl.sampler.SamplerHolder;
|
||||
import net.coderbot.iris.gl.sampler.SamplerLimits;
|
||||
import net.coderbot.iris.gl.state.ValueUpdateNotifier;
|
||||
import net.coderbot.iris.gl.texture.TextureAccess;
|
||||
import net.coderbot.iris.gl.texture.TextureType;
|
||||
import com.gtnewhorizons.angelica.glsm.texture.TextureType;
|
||||
import net.coderbot.iris.shaderpack.PackRenderTargetDirectives;
|
||||
import org.lwjgl.opengl.GL13;
|
||||
|
||||
@@ -51,8 +51,8 @@ public class ProgramSamplers {
|
||||
// in the middle of RenderType setup, bad things will happen.
|
||||
int activeTexture = GLStateManager.getActiveTextureUnit();
|
||||
|
||||
for (SamplerBinding samplerBinding : samplerBindings) {
|
||||
samplerBinding.update();
|
||||
for (int i = 0, n = samplerBindings.size(); i < n; i++) {
|
||||
samplerBindings.get(i).update();
|
||||
}
|
||||
|
||||
GLStateManager.glActiveTexture(GL13.GL_TEXTURE0 + activeTexture);
|
||||
@@ -61,8 +61,8 @@ public class ProgramSamplers {
|
||||
public void removeListeners() {
|
||||
active = null;
|
||||
|
||||
for (ValueUpdateNotifier notifier : notifiersToReset) {
|
||||
notifier.setListener(null);
|
||||
for (int i = 0, n = notifiersToReset.size(); i < n; i++) {
|
||||
notifiersToReset.get(i).setListener(null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user