@@ -34,12 +34,11 @@ void drawTexturedQuad(Identifier texture, float x1, float x2, float y1, float y2
3434 RenderSystem .setShaderTexture (0 , texture );
3535 RenderSystem .setShader (GameRenderer ::getPositionTexProgram );
3636 Matrix4f matrix4f = this .matrices .peek ().getPositionMatrix ();
37- BufferBuilder bufferBuilder = Tessellator .getInstance ().getBuffer ();
38- bufferBuilder .begin (VertexFormat .DrawMode .QUADS , VertexFormats .POSITION_TEXTURE );
39- bufferBuilder .vertex (matrix4f , x1 , y1 , 0f ).texture (u1 , v1 ).next ();
40- bufferBuilder .vertex (matrix4f , x1 , y2 , 0f ).texture (u1 , v2 ).next ();
41- bufferBuilder .vertex (matrix4f , x2 , y2 , 0f ).texture (u2 , v2 ).next ();
42- bufferBuilder .vertex (matrix4f , x2 , y1 , 0f ).texture (u2 , v1 ).next ();
37+ BufferBuilder bufferBuilder = Tessellator .getInstance ().begin (VertexFormat .DrawMode .QUADS , VertexFormats .POSITION_TEXTURE );
38+ bufferBuilder .vertex (matrix4f , x1 , y1 , 0f ).texture (u1 , v1 );
39+ bufferBuilder .vertex (matrix4f , x1 , y2 , 0f ).texture (u1 , v2 );
40+ bufferBuilder .vertex (matrix4f , x2 , y2 , 0f ).texture (u2 , v2 );
41+ bufferBuilder .vertex (matrix4f , x2 , y1 , 0f ).texture (u2 , v1 );
4342 BufferRenderer .drawWithGlobalProgram (bufferBuilder .end ());
4443 }
4544}
0 commit comments