Commit 3d0296f8debe9d59f1f02198461d627706cc8a4e
1 parent
86035a24
Fix loading screen flickering when debug is enabled
Showing
1 changed file
with
10 additions
and
10 deletions
src/client/java/com/mumfrey/liteloader/client/gui/startup/LoadingBar.java
| ... | ... | @@ -260,12 +260,12 @@ public class LoadingBar extends LoadingProgress |
| 260 | 260 | this.textureManager.bindTexture(this.textureLocation); |
| 261 | 261 | Tessellator tessellator = Tessellator.getInstance(); |
| 262 | 262 | VertexBuffer vertexBuffer = tessellator.getBuffer(); |
| 263 | - vertexBuffer.begin(GL_QUADS, VF_POSITION); | |
| 263 | + vertexBuffer.begin(GL_QUADS, VF_POSITION_TEX_COLOR); | |
| 264 | 264 | glColor4f(1.0F, 1.0F, 1.0F, 1.0F); |
| 265 | - vertexBuffer.pos(0.0D, scaledHeight, 0.0D).endVertex(); | |
| 266 | - vertexBuffer.pos(scaledWidth, scaledHeight, 0.0D).endVertex(); | |
| 267 | - vertexBuffer.pos(scaledWidth, 0.0D, 0.0D).endVertex(); | |
| 268 | - vertexBuffer.pos(0.0D, 0.0D, 0.0D).endVertex(); | |
| 265 | + vertexBuffer.pos(0.0D, scaledHeight, 0.0D).tex(0.0D, 0.0D).color(255, 255, 255, 255).endVertex(); | |
| 266 | + vertexBuffer.pos(scaledWidth, scaledHeight, 0.0D).tex(0.0D, 0.0D).color(255, 255, 255, 255).endVertex(); | |
| 267 | + vertexBuffer.pos(scaledWidth, 0.0D, 0.0D).tex(0.0D, 0.0D).color(255, 255, 255, 255).endVertex(); | |
| 268 | + vertexBuffer.pos(0.0D, 0.0D, 0.0D).tex(0.0D, 0.0D).color(255, 255, 255, 255).endVertex(); | |
| 269 | 269 | tessellator.draw(); |
| 270 | 270 | |
| 271 | 271 | glColor4f(1.0F, 1.0F, 1.0F, 1.0F); |
| ... | ... | @@ -278,11 +278,11 @@ public class LoadingBar extends LoadingProgress |
| 278 | 278 | int v2 = 256; |
| 279 | 279 | |
| 280 | 280 | float texMapScale = 0.00390625F; |
| 281 | - vertexBuffer.begin(GL_QUADS, VF_POSITION_TEX); | |
| 282 | - vertexBuffer.pos(left + 0, top + v2, 0.0D).tex((u1 + 0) * texMapScale, (v1 + v2) * texMapScale).endVertex(); | |
| 283 | - vertexBuffer.pos(left + u2, top + v2, 0.0D).tex((u1 + u2) * texMapScale, (v1 + v2) * texMapScale).endVertex(); | |
| 284 | - vertexBuffer.pos(left + u2, top + 0, 0.0D).tex((u1 + u2) * texMapScale, (v1 + 0) * texMapScale).endVertex(); | |
| 285 | - vertexBuffer.pos(left + 0, top + 0, 0.0D).tex((u1 + 0) * texMapScale, (v1 + 0) * texMapScale).endVertex(); | |
| 281 | + vertexBuffer.begin(GL_QUADS, VF_POSITION_TEX_COLOR); | |
| 282 | + vertexBuffer.pos(left + 0, top + v2, 0.0D).tex((u1 + 0) * texMapScale, (v1 + v2) * texMapScale).color(255, 255, 255, 255).endVertex(); | |
| 283 | + vertexBuffer.pos(left + u2, top + v2, 0.0D).tex((u1 + u2) * texMapScale, (v1 + v2) * texMapScale).color(255, 255, 255, 255).endVertex(); | |
| 284 | + vertexBuffer.pos(left + u2, top + 0, 0.0D).tex((u1 + u2) * texMapScale, (v1 + 0) * texMapScale).color(255, 255, 255, 255).endVertex(); | |
| 285 | + vertexBuffer.pos(left + 0, top + 0, 0.0D).tex((u1 + 0) * texMapScale, (v1 + 0) * texMapScale).color(255, 255, 255, 255).endVertex(); | |
| 286 | 286 | tessellator.draw(); |
| 287 | 287 | |
| 288 | 288 | glEnableTexture2D(); | ... | ... |