Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 54e86c5

Browse files
- default show outline of selections
- use static draw as dynamic draw caused flickering and disappearing drawing
1 parent faba9f9 commit 54e86c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/github/sbobicus/VeinBuddyClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class VeinBuddyClient implements ClientModInitializer {
7777
private boolean change = true;
7878
private int saveNumber = 0;
7979
private int changeNumber = 0;
80-
private boolean showOutlines = false;
80+
private boolean showOutlines = true;
8181
private boolean render = true;
8282

8383
private Set<Vec3i> selections = new ConcurrentSkipListSet<Vec3i>();
@@ -1033,11 +1033,11 @@ private void afterTranslucent(WorldRenderContext ctx) {
10331033

10341034
if (updateBuffers) {
10351035
GL30.glBindBuffer(GL30.GL_ARRAY_BUFFER, selectionVBO);
1036-
GL30.glBufferData(GL30.GL_ARRAY_BUFFER, selectionBuffer, GL30.GL_DYNAMIC_DRAW);
1036+
GL30.glBufferData(GL30.GL_ARRAY_BUFFER, selectionBuffer, GL30.GL_STATIC_DRAW);
10371037
GL30.glBindBuffer(GL30.GL_ARRAY_BUFFER, wallVBO);
1038-
GL30.glBufferData(GL30.GL_ARRAY_BUFFER, wallBuffer, GL30.GL_DYNAMIC_DRAW);
1038+
GL30.glBufferData(GL30.GL_ARRAY_BUFFER, wallBuffer, GL30.GL_STATIC_DRAW);
10391039
GL30.glBindBuffer(GL30.GL_ARRAY_BUFFER, gridVBO);
1040-
GL30.glBufferData(GL30.GL_ARRAY_BUFFER, gridBuffer, GL30.GL_DYNAMIC_DRAW);
1040+
GL30.glBufferData(GL30.GL_ARRAY_BUFFER, gridBuffer, GL30.GL_STATIC_DRAW);
10411041
}
10421042

10431043
GL30.glBindBuffer(GL30.GL_ARRAY_BUFFER, selectionVBO);

0 commit comments

Comments
 (0)