Use correlating ifdef.

This commit is contained in:
Themaister 2012-05-27 12:38:07 +02:00
parent 8e45e6bc4a
commit e1a3bf48fd
2 changed files with 4 additions and 3 deletions

View File

@ -910,7 +910,7 @@ static void gl_free(void *data)
glDisableClientState(GL_COLOR_ARRAY); glDisableClientState(GL_COLOR_ARRAY);
glDeleteTextures(TEXTURES, gl->texture); glDeleteTextures(TEXTURES, gl->texture);
#ifdef __CELLOS_LV2__ #ifdef HAVE_OPENGL_TEXREF
glBindBuffer(GL_TEXTURE_REFERENCE_BUFFER_SCE, 0); glBindBuffer(GL_TEXTURE_REFERENCE_BUFFER_SCE, 0);
glDeleteBuffers(1, &gl->pbo); glDeleteBuffers(1, &gl->pbo);
#endif #endif
@ -1059,7 +1059,8 @@ static void *gl_init(const video_info_t *video, const input_driver_t **input, vo
#ifdef HAVE_OPENGL_TEXREF #ifdef HAVE_OPENGL_TEXREF
glGenBuffers(1, &gl->pbo); glGenBuffers(1, &gl->pbo);
glBindBuffer(GL_TEXTURE_REFERENCE_BUFFER_SCE, gl->pbo); glBindBuffer(GL_TEXTURE_REFERENCE_BUFFER_SCE, gl->pbo);
glBufferData(GL_TEXTURE_REFERENCE_BUFFER_SCE, gl->tex_w * gl->tex_h * gl->base_size * TEXTURES, NULL, GL_STREAM_DRAW); glBufferData(GL_TEXTURE_REFERENCE_BUFFER_SCE,
gl->tex_w * gl->tex_h * gl->base_size * TEXTURES, NULL, GL_STREAM_DRAW);
#endif #endif
// Empty buffer that we use to clear out the texture with on res change. // Empty buffer that we use to clear out the texture with on res change.

View File

@ -197,7 +197,7 @@ extern PFNGLACTIVETEXTUREPROC pglActiveTexture;
#define RARCH_GL_FORMAT32 GL_UNSIGNED_INT_8_8_8_8_REV #define RARCH_GL_FORMAT32 GL_UNSIGNED_INT_8_8_8_8_REV
#define RARCH_GL_FORMAT16 GL_UNSIGNED_SHORT_1_5_5_5_REV #define RARCH_GL_FORMAT16 GL_UNSIGNED_SHORT_1_5_5_5_REV
void gl_shader_use(unsigned); void gl_shader_use(unsigned index);
void gl_set_projection(gl_t *gl, bool allow_rotate); void gl_set_projection(gl_t *gl, bool allow_rotate);
void gl_set_viewport(gl_t *gl, unsigned width, unsigned height, bool force_full, bool allow_rotate); void gl_set_viewport(gl_t *gl, unsigned width, unsigned height, bool force_full, bool allow_rotate);