mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-23 08:12:57 +00:00
ghost segfault???????
This commit is contained in:
parent
c6fa51d592
commit
3986e4642b
|
|
@ -646,13 +646,11 @@ void LevelRenderer::renderEntities(Vec3* cam, Culler* culler, float a) {
|
|||
if (!isGlobalIndexInSameDimension(idx, level[playerIndex])) continue;
|
||||
|
||||
for (AUTO_VAR(it2, it->second.tiles.begin());
|
||||
it2 != it->second.tiles.end();
|
||||
it2++) {
|
||||
it2 != it->second.tiles.end(); it2++) {
|
||||
TileEntityRenderDispatcher::instance->render(*it2, a);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
LeaveCriticalSection(&m_csRenderableTileEntities);
|
||||
|
||||
mc->gameRenderer->turnOffLightLayer(a); // 4J - brought forward from 1.8.2
|
||||
|
|
@ -874,9 +872,9 @@ int LevelRenderer::renderChunks(int from, int to, int layer, double alpha) {
|
|||
|
||||
// 4jcraft: replaced glPushMatrix/glTranslatef/glPopMatrix per chunk
|
||||
// no more full MVP upload per chunk, can also be bkwards compat
|
||||
RenderManager.SetChunkOffset((float)pClipChunk->chunk->x,
|
||||
(float)pClipChunk->chunk->y,
|
||||
(float)pClipChunk->chunk->z);
|
||||
RenderManager.SetChunkOffset((float)chunk->chunk->x,
|
||||
(float)chunk->chunk->y,
|
||||
(float)chunk->chunk->z);
|
||||
|
||||
if (RenderManager.CBuffCall(list, first)) {
|
||||
first = false;
|
||||
|
|
@ -4229,7 +4227,8 @@ void LevelRenderer::fullyFlagRenderableTileEntitiesToBeRemoved() {
|
|||
RenderableTileEntityBucket& bucket = itChunk->second;
|
||||
for (AUTO_VAR(itPending, itKey->second.begin());
|
||||
itPending != itKey->second.end(); itPending++) {
|
||||
if (bucket.indexByTile.find(*itPending) == bucket.indexByTile.end()) {
|
||||
if (bucket.indexByTile.find(*itPending) ==
|
||||
bucket.indexByTile.end()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue