mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
Try to fix PS3 build
This commit is contained in:
parent
0ff54e7bd7
commit
b3d8146009
@ -1355,28 +1355,24 @@ static void gl2_renderchain_copy_frame(
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !defined(HAVE_OPENGLES2) && !defined(HAVE_PSGL)
|
||||
static void gl2_renderchain_bind_pbo(unsigned idx)
|
||||
{
|
||||
#ifndef HAVE_OPENGLES2
|
||||
glBindBuffer(GL_PIXEL_PACK_BUFFER, (GLuint)idx);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void gl2_renderchain_unbind_pbo(void)
|
||||
{
|
||||
#ifndef HAVE_OPENGLES2
|
||||
glBindBuffer(GL_PIXEL_PACK_BUFFER, 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void gl2_renderchain_init_pbo(unsigned size,
|
||||
const void *data)
|
||||
{
|
||||
#ifndef HAVE_OPENGLES2
|
||||
glBufferData(GL_PIXEL_PACK_BUFFER, size,
|
||||
(const GLvoid*)data, GL_STREAM_READ);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
static void gl2_renderchain_readback(void *data,
|
||||
unsigned alignment,
|
||||
@ -1468,9 +1464,15 @@ gl_renderchain_driver_t gl2_renderchain = {
|
||||
gl2_renderchain_fence_free,
|
||||
#endif
|
||||
gl2_renderchain_readback,
|
||||
#if !defined(HAVE_OPENGLES2) && !defined(HAVE_PSGL)
|
||||
gl2_renderchain_init_pbo,
|
||||
gl2_renderchain_bind_pbo,
|
||||
gl2_renderchain_unbind_pbo,
|
||||
#else
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
#endif
|
||||
gl2_renderchain_copy_frame,
|
||||
gl2_renderchain_restore_default_state,
|
||||
#ifdef HAVE_OPENGLES
|
||||
|
Loading…
x
Reference in New Issue
Block a user