Only call sceGxmFinish when vsync is on
Also fix oversight with supported texturesmain
parent
b52e9459ba
commit
739f4e1eb2
|
@ -115,8 +115,8 @@ SDL_RenderDriver VITA_GXM_RenderDriver = {
|
|||
[1] = SDL_PIXELFORMAT_ARGB8888,
|
||||
[2] = SDL_PIXELFORMAT_RGB888,
|
||||
[3] = SDL_PIXELFORMAT_BGR888,
|
||||
[2] = SDL_PIXELFORMAT_RGB565,
|
||||
[3] = SDL_PIXELFORMAT_BGR565
|
||||
[4] = SDL_PIXELFORMAT_RGB565,
|
||||
[5] = SDL_PIXELFORMAT_BGR565
|
||||
},
|
||||
.max_texture_width = 1024,
|
||||
.max_texture_height = 1024,
|
||||
|
@ -1086,9 +1086,11 @@ VITA_GXM_RenderPresent(SDL_Renderer *renderer)
|
|||
VITA_GXM_RenderData *data = (VITA_GXM_RenderData *) renderer->driverdata;
|
||||
SceCommonDialogUpdateParam updateParam;
|
||||
|
||||
if(data->drawing) {
|
||||
if (data->drawing) {
|
||||
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];
|
||||
|
|
Loading…
Reference in New Issue