mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-25 20:32:22 +00:00
Create gl_flush
This commit is contained in:
parent
422e940bc4
commit
31eaeb1a03
@ -279,8 +279,8 @@ void egl_destroy(egl_ctx_data_t *egl)
|
||||
#if !defined(RARCH_MOBILE)
|
||||
if (egl->ctx != EGL_NO_CONTEXT)
|
||||
{
|
||||
glFlush();
|
||||
glFinish();
|
||||
gl_flush();
|
||||
gl_finish();
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
@ -17,6 +17,11 @@
|
||||
|
||||
#include <glsym/rglgen.h>
|
||||
|
||||
void gl_flush(void)
|
||||
{
|
||||
glFlush();
|
||||
}
|
||||
|
||||
void gl_clear(void)
|
||||
{
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
@ -25,4 +25,6 @@ void gl_disable(unsigned cap);
|
||||
|
||||
void gl_finish(void);
|
||||
|
||||
void gl_flush(void);
|
||||
|
||||
#endif
|
||||
|
@ -37,6 +37,10 @@
|
||||
#include <lists/dir_list.h>
|
||||
#include <string/stdstring.h>
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "../../config.h"
|
||||
#endif
|
||||
|
||||
#include "../../configuration.h"
|
||||
#include "../../verbosity.h"
|
||||
#include "../../frontend/frontend_driver.h"
|
||||
@ -46,9 +50,7 @@
|
||||
#include "../common/egl_common.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "../../config.h"
|
||||
#endif
|
||||
#include "../common/gl_common.h"
|
||||
|
||||
#ifdef HAVE_OPENGLES
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include "../../verbosity.h"
|
||||
#include <defines/ps3_defines.h>
|
||||
#include "../../frontend/frontend_driver.h"
|
||||
/* TODO/FIXME - we should have a gl_common.h for functions like glFinish so we don't have to include gl2_common.h here */
|
||||
#include "../common/gl_common.h"
|
||||
#include "../common/gl2_common.h"
|
||||
|
||||
typedef struct gfx_ctx_ps3_data
|
||||
|
Loading…
x
Reference in New Issue
Block a user