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,
|
[1] = SDL_PIXELFORMAT_ARGB8888,
|
||||||
[2] = SDL_PIXELFORMAT_RGB888,
|
[2] = SDL_PIXELFORMAT_RGB888,
|
||||||
[3] = SDL_PIXELFORMAT_BGR888,
|
[3] = SDL_PIXELFORMAT_BGR888,
|
||||||
[2] = SDL_PIXELFORMAT_RGB565,
|
[4] = SDL_PIXELFORMAT_RGB565,
|
||||||
[3] = SDL_PIXELFORMAT_BGR565
|
[5] = SDL_PIXELFORMAT_BGR565
|
||||||
},
|
},
|
||||||
.max_texture_width = 1024,
|
.max_texture_width = 1024,
|
||||||
.max_texture_height = 1024,
|
.max_texture_height = 1024,
|
||||||
|
@ -1088,8 +1088,10 @@ VITA_GXM_RenderPresent(SDL_Renderer *renderer)
|
||||||
|
|
||||||
if (data->drawing) {
|
if (data->drawing) {
|
||||||
sceGxmEndScene(data->gxm_context, NULL, NULL);
|
sceGxmEndScene(data->gxm_context, NULL, NULL);
|
||||||
|
if (data->displayData.wait_vblank) {
|
||||||
sceGxmFinish(data->gxm_context);
|
sceGxmFinish(data->gxm_context);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
data->displayData.address = data->displayBufferData[data->backBufferIndex];
|
data->displayData.address = data->displayBufferData[data->backBufferIndex];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue