Fixed tab spacing
This commit is contained in:
parent
45d3f30eea
commit
ff12f1cf0d
1 changed files with 13 additions and 13 deletions
|
@ -178,7 +178,7 @@ GLES2_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event)
|
||||||
|
|
||||||
if (event->event == SDL_WINDOWEVENT_MINIMIZED) {
|
if (event->event == SDL_WINDOWEVENT_MINIMIZED) {
|
||||||
/* According to Apple documentation, we need to finish drawing NOW! */
|
/* According to Apple documentation, we need to finish drawing NOW! */
|
||||||
glFinish();
|
glFinish();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -206,21 +206,21 @@ GLES2_DestroyRenderer(SDL_Renderer *renderer)
|
||||||
if (rdata) {
|
if (rdata) {
|
||||||
GLES2_ActivateRenderer(renderer);
|
GLES2_ActivateRenderer(renderer);
|
||||||
|
|
||||||
{
|
{
|
||||||
GLES2_ShaderCacheEntry *entry;
|
GLES2_ShaderCacheEntry *entry;
|
||||||
GLES2_ShaderCacheEntry *next;
|
GLES2_ShaderCacheEntry *next;
|
||||||
entry = rdata->shader_cache.head;
|
entry = rdata->shader_cache.head;
|
||||||
while (entry)
|
while (entry)
|
||||||
{
|
{
|
||||||
glDeleteShader(entry->id);
|
glDeleteShader(entry->id);
|
||||||
next = entry->next;
|
next = entry->next;
|
||||||
SDL_free(entry);
|
SDL_free(entry);
|
||||||
entry = next;
|
entry = next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
GLES2_ProgramCacheEntry *entry;
|
GLES2_ProgramCacheEntry *entry;
|
||||||
GLES2_ProgramCacheEntry *next;
|
GLES2_ProgramCacheEntry *next;
|
||||||
entry = rdata->program_cache.head;
|
entry = rdata->program_cache.head;
|
||||||
while (entry) {
|
while (entry) {
|
||||||
glDeleteProgram(entry->id);
|
glDeleteProgram(entry->id);
|
||||||
|
@ -228,7 +228,7 @@ GLES2_DestroyRenderer(SDL_Renderer *renderer)
|
||||||
SDL_free(entry);
|
SDL_free(entry);
|
||||||
entry = next;
|
entry = next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (rdata->context) {
|
if (rdata->context) {
|
||||||
SDL_GL_DeleteContext(rdata->context);
|
SDL_GL_DeleteContext(rdata->context);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue