mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +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);
|
MemSect(0);
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
glDepthMask(true); // 4J added
|
glDepthMask(true); // 4J added
|
||||||
t->useCompactVertices(true); // 4J added
|
t->useCompactVertices(false); // 4J added
|
||||||
translateToPos();
|
translateToPos();
|
||||||
float ss = 1.000001f;
|
float ss = 1.000001f;
|
||||||
// 4J - have removed this scale as I don't think we should need it, and have now optimised the vertex
|
// 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);
|
MemSect(0);
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
glDepthMask(true); // 4J added
|
glDepthMask(true); // 4J added
|
||||||
t->useCompactVertices(true); // 4J added
|
t->useCompactVertices(false); // 4J added
|
||||||
translateToPos();
|
translateToPos();
|
||||||
float ss = 1.000001f;
|
float ss = 1.000001f;
|
||||||
// 4J - have removed this scale as I don't think we should need it, and have now optimised the vertex
|
// 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