mirror of
https://github.com/libretro/RetroArch
synced 2025-02-25 03:40:50 +00:00
(PS3) No longer gives framebuffer objects error
This commit is contained in:
parent
e90b7e6a03
commit
4d95765cb5
@ -1328,10 +1328,11 @@ void menu_loop(void)
|
|||||||
|
|
||||||
menu_reinit_settings();
|
menu_reinit_settings();
|
||||||
|
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
//ps3graphics_draw_menu();
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
ps3graphics_draw_menu();
|
|
||||||
g_frame_count++;
|
g_frame_count++;
|
||||||
|
|
||||||
switch(menuStack[menuStackindex].enum_id)
|
switch(menuStack[menuStackindex].enum_id)
|
||||||
|
@ -358,7 +358,7 @@ static void gl_init_fbo(gl_t *gl, unsigned width, unsigned height)
|
|||||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, filter_type);
|
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, filter_type);
|
||||||
|
|
||||||
glTexImage2D(GL_TEXTURE_2D,
|
glTexImage2D(GL_TEXTURE_2D,
|
||||||
0, GL_RGBA, gl->fbo_rect[i].width, gl->fbo_rect[i].height, 0, GL_BGRA,
|
0, GL_ARGB_SCE, gl->fbo_rect[i].width, gl->fbo_rect[i].height, 0, GL_ARGB_SCE,
|
||||||
GL_UNSIGNED_INT_8_8_8_8, NULL);
|
GL_UNSIGNED_INT_8_8_8_8, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -558,7 +558,7 @@ static bool gl_frame(void *data, const void *frame, unsigned width, unsigned hei
|
|||||||
glBindFramebufferOES(GL_FRAMEBUFFER_OES, gl->fbo[i]);
|
glBindFramebufferOES(GL_FRAMEBUFFER_OES, gl->fbo[i]);
|
||||||
glBindTexture(GL_TEXTURE_2D, gl->fbo_texture[i]);
|
glBindTexture(GL_TEXTURE_2D, gl->fbo_texture[i]);
|
||||||
glTexImage2D(GL_TEXTURE_2D,
|
glTexImage2D(GL_TEXTURE_2D,
|
||||||
0, GL_RGBA, gl->fbo_rect[i].width, gl->fbo_rect[i].height, 0, GL_BGRA,
|
0, GL_ARGB_SCE, gl->fbo_rect[i].width, gl->fbo_rect[i].height, 0, GL_ARGB_SCE,
|
||||||
GL_UNSIGNED_INT_8_8_8_8, NULL);
|
GL_UNSIGNED_INT_8_8_8_8, NULL);
|
||||||
|
|
||||||
glFramebufferTexture2DOES(GL_FRAMEBUFFER_OES, GL_COLOR_ATTACHMENT0_EXT, GL_TEXTURE_2D, gl->fbo_texture[i], 0);
|
glFramebufferTexture2DOES(GL_FRAMEBUFFER_OES, GL_COLOR_ATTACHMENT0_EXT, GL_TEXTURE_2D, gl->fbo_texture[i], 0);
|
||||||
|
1
ssnes.c
1
ssnes.c
@ -2162,7 +2162,6 @@ bool ssnes_main_iterate(void)
|
|||||||
if (driver.input->key_pressed(driver.input_data, SSNES_QUIT_KEY) ||
|
if (driver.input->key_pressed(driver.input_data, SSNES_QUIT_KEY) ||
|
||||||
!driver.video->alive(driver.video_data))
|
!driver.video->alive(driver.video_data))
|
||||||
return false;
|
return false;
|
||||||
printf("Iterate reaches here\n");
|
|
||||||
|
|
||||||
// Checks for stuff like fullscreen, save states, etc.
|
// Checks for stuff like fullscreen, save states, etc.
|
||||||
do_state_checks();
|
do_state_checks();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user