Fixed soem stuff on RenderScope 1.21.6 #59
This commit is contained in:
@@ -140,7 +140,7 @@ public class RenderScopeImpl implements RenderScope {
|
|||||||
SaturnClient.client.textRenderer,
|
SaturnClient.client.textRenderer,
|
||||||
((Text) Fonts.setFont(line, font)).asOrderedText(),
|
((Text) Fonts.setFont(line, font)).asOrderedText(),
|
||||||
new Matrix3x2f(this.matrices.stack),
|
new Matrix3x2f(this.matrices.stack),
|
||||||
0, 0, // IMPORTANT
|
0, font == 0 ? 1 : 8,
|
||||||
finalColor, 0, false, this.scissorStack.peekLast()));
|
finalColor, 0, false, this.scissorStack.peekLast()));
|
||||||
|
|
||||||
matrices.pop();
|
matrices.pop();
|
||||||
@@ -245,9 +245,6 @@ public class RenderScopeImpl implements RenderScope {
|
|||||||
return;
|
return;
|
||||||
color = getColor(color);
|
color = getColor(color);
|
||||||
|
|
||||||
GpuTextureView gpuTextureView = SaturnClient.client.getTextureManager()
|
|
||||||
.getTexture(sprite).getGlTextureView();
|
|
||||||
|
|
||||||
if (sprite.getPath().endsWith(".svg")) {
|
if (sprite.getPath().endsWith(".svg")) {
|
||||||
sprite = (Identifier) (Object) SvgTexture.getSvg(
|
sprite = (Identifier) (Object) SvgTexture.getSvg(
|
||||||
Providers.saturn.getClient(),
|
Providers.saturn.getClient(),
|
||||||
@@ -255,8 +252,11 @@ public class RenderScopeImpl implements RenderScope {
|
|||||||
(x2 - x1) * 2, (y2 - y1) * 2);
|
(x2 - x1) * 2, (y2 - y1) * 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GpuTextureView gpuTextureView = SaturnClient.client.getTextureManager()
|
||||||
|
.getTexture(sprite).getGlTextureView();
|
||||||
|
|
||||||
this.state.addSimpleElement(new TexturedQuadGuiElementRenderState(
|
this.state.addSimpleElement(new TexturedQuadGuiElementRenderState(
|
||||||
RenderPipelines.GUI,
|
RenderPipelines.GUI_TEXTURED,
|
||||||
TextureSetup.withoutGlTexture(gpuTextureView),
|
TextureSetup.withoutGlTexture(gpuTextureView),
|
||||||
new Matrix3x2f(this.matrices.stack),
|
new Matrix3x2f(this.matrices.stack),
|
||||||
x1, y1, x2, y2, u1, u2, v1, v2, color,
|
x1, y1, x2, y2, u1, u2, v1, v2, color,
|
||||||
|
|||||||
Reference in New Issue
Block a user