Fix tracking of enabled state for primary texture
This commit is contained in:
@@ -89,7 +89,7 @@ public class ODSFrameCapturer implements FrameCapturer<ODSOpenGlFrame> {
|
|||||||
shaderProgram.getUniformVariable("hurtTextureEnabled")
|
shaderProgram.getUniformVariable("hurtTextureEnabled")
|
||||||
};
|
};
|
||||||
renderStateEvents.on(Texture2DStateCallback.EVENT, (id, enabled) -> {
|
renderStateEvents.on(Texture2DStateCallback.EVENT, (id, enabled) -> {
|
||||||
if (id > 0 && id < texture2DUniforms.length) {
|
if (id >= 0 && id < texture2DUniforms.length) {
|
||||||
texture2DUniforms[id].set(true);
|
texture2DUniforms[id].set(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user