Ver a proveniência

Free leaked allocations from render objects (#1302)

pull/1305/head
Terry Nguyen há 4 anos
committed by GitHub
ascendente
cometimento
871cd1a76a
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: 4AEE18F83AFDEB23
1 ficheiros alterados com 5 adições e 2 eliminações
  1. +5
    -2
      src/rlgl.h

+ 5
- 2
src/rlgl.h Ver ficheiro

@ -4070,6 +4070,8 @@ static void UnloadShaderDefault(void)
glDeleteShader(RLGL.State.defaultFShaderId);
glDeleteProgram(RLGL.State.defaultShader.id);
RL_FREE(RLGL.State.defaultShader.locs);
}
// Load render batch
@ -4186,8 +4188,9 @@ static RenderBatch LoadRenderBatch(int numBuffers, int bufferElements)
//batch.draws[i].RLGL.State.modelview = MatrixIdentity();
}
batch.drawsCounter = 1; // Reset draws counter
batch.currentDepth = -1.0f; // Reset depth value
batch.buffersCount = numBuffers; // Record buffer count
batch.drawsCounter = 1; // Reset draws counter
batch.currentDepth = -1.0f; // Reset depth value
//--------------------------------------------------------------------------------------------
return batch;

Carregando…
Cancelar
Guardar