mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-29 07:43:37 +00:00
fix: disable compact vertex format for terrain to fix invisible geometry on laptop/AMD GPUs
This commit is contained in:
parent
a92180a713
commit
4ad16db139
|
|
@ -385,7 +385,7 @@ void Chunk::rebuild()
|
|||
MemSect(0);
|
||||
glPushMatrix();
|
||||
glDepthMask(true); // 4J added
|
||||
t->useCompactVertices(true); // 4J added
|
||||
t->useCompactVertices(false); // 4J added
|
||||
translateToPos();
|
||||
float ss = 1.000001f;
|
||||
// 4J - have removed this scale as I don't think we should need it, and have now optimised the vertex
|
||||
|
|
@ -704,7 +704,7 @@ void Chunk::rebuild_SPU()
|
|||
MemSect(0);
|
||||
glPushMatrix();
|
||||
glDepthMask(true); // 4J added
|
||||
t->useCompactVertices(true); // 4J added
|
||||
t->useCompactVertices(false); // 4J added
|
||||
translateToPos();
|
||||
float ss = 1.000001f;
|
||||
// 4J - have removed this scale as I don't think we should need it, and have now optimised the vertex
|
||||
|
|
|
|||
Loading…
Reference in a new issue