diff --git a/gfx/drivers/gl1.c b/gfx/drivers/gl1.c index 2dd116c0ba..dc11972c2c 100644 --- a/gfx/drivers/gl1.c +++ b/gfx/drivers/gl1.c @@ -286,14 +286,16 @@ static void *gl1_gfx_init(const video_info_t *video, mode.width = 0; mode.height = 0; #ifdef VITA - vglInitExtended(0x100000, 960, 544, 0x1000000, SCE_GXM_MULTISAMPLE_4X); + vglInitExtended(0x1400000, full_x, full_y, 0x1000000, SCE_GXM_MULTISAMPLE_4X); + vglUseVram(GL_TRUE); + vglStartRendering(); #endif /* Clear out potential error flags in case we use cached context. */ glGetError(); - +#ifndef VITA if (string_is_equal(ctx_driver->ident, "null")) goto error; - +#endif RARCH_LOG("[GL1]: Detecting screen resolution %ux%u.\n", full_x, full_y); win_width = video->width; @@ -718,9 +720,7 @@ static bool gl1_gfx_frame(void *data, const void *frame, unsigned pot_height = 0; gl1_context_bind_hw_render(gl1, false); -#ifdef VITA - vglStartRendering(); -#endif + /* FIXME: Force these settings off as they interfere with the rendering */ video_info->xmb_shadows_enable = false; video_info->menu_shader_pipeline = 0; @@ -927,9 +927,10 @@ static bool gl1_gfx_frame(void *data, const void *frame, glClear(GL_COLOR_BUFFER_BIT); glFinish(); } -#ifdef VITA +#ifdef VITA vglStopRendering(); -#endif + vglStartRendering(); +#endif gl1_context_bind_hw_render(gl1, true); return true; diff --git a/gfx/drivers_context/gfx_null_ctx.c b/gfx/drivers_context/gfx_null_ctx.c index c367fe5366..de99386b52 100644 --- a/gfx/drivers_context/gfx_null_ctx.c +++ b/gfx/drivers_context/gfx_null_ctx.c @@ -42,8 +42,13 @@ static void gfx_ctx_null_swap_buffers(void *data, void *data2) static void gfx_ctx_null_get_video_size(void *data, unsigned *width, unsigned *height) { (void)data; +#ifdef VITA + *width = 960; + *height = 544; +#else *width = 320; *height = 240; +#endif } static bool gfx_ctx_null_set_video_mode(void *data,