mirror of https://github.com/encounter/SDL.git
End Scene on RunCommandQueue on Vita
This commit is contained in:
parent
08ae790497
commit
5292156398
|
@ -1084,6 +1084,9 @@ VITA_GXM_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *
|
||||||
cmd = cmd->next;
|
cmd = cmd->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sceGxmEndScene(data->gxm_context, NULL, NULL);
|
||||||
|
data->drawing = SDL_FALSE;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1179,11 +1182,8 @@ VITA_GXM_RenderPresent(SDL_Renderer *renderer)
|
||||||
VITA_GXM_RenderData *data = (VITA_GXM_RenderData *) renderer->driverdata;
|
VITA_GXM_RenderData *data = (VITA_GXM_RenderData *) renderer->driverdata;
|
||||||
SceCommonDialogUpdateParam updateParam;
|
SceCommonDialogUpdateParam updateParam;
|
||||||
|
|
||||||
if (data->drawing) {
|
if (data->displayData.wait_vblank) {
|
||||||
sceGxmEndScene(data->gxm_context, NULL, NULL);
|
sceGxmFinish(data->gxm_context);
|
||||||
if (data->displayData.wait_vblank) {
|
|
||||||
sceGxmFinish(data->gxm_context);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
data->displayData.address = data->displayBufferData[data->backBufferIndex];
|
data->displayData.address = data->displayBufferData[data->backBufferIndex];
|
||||||
|
@ -1222,8 +1222,6 @@ VITA_GXM_RenderPresent(SDL_Renderer *renderer)
|
||||||
data->pool_index = 0;
|
data->pool_index = 0;
|
||||||
|
|
||||||
data->current_pool = (data->current_pool + 1) % 2;
|
data->current_pool = (data->current_pool + 1) % 2;
|
||||||
|
|
||||||
data->drawing = SDL_FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -1241,16 +1239,7 @@ VITA_GXM_DestroyTexture(SDL_Renderer *renderer, SDL_Texture *texture)
|
||||||
if(vita_texture->tex == 0)
|
if(vita_texture->tex == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// make sure that texture isn't used
|
sceGxmFinish(data->gxm_context);
|
||||||
if (data->drawing) {
|
|
||||||
sceGxmEndScene(data->gxm_context, NULL, NULL);
|
|
||||||
data->drawing = SDL_FALSE;
|
|
||||||
sceGxmFinish(data->gxm_context);
|
|
||||||
StartDrawing(renderer);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
sceGxmFinish(data->gxm_context);
|
|
||||||
}
|
|
||||||
|
|
||||||
free_gxm_texture(vita_texture->tex);
|
free_gxm_texture(vita_texture->tex);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue