Create gl_flush

This commit is contained in:
twinaphex 2021-09-26 22:28:28 +02:00
parent 422e940bc4
commit 31eaeb1a03
5 changed files with 15 additions and 6 deletions

View File

@ -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

View File

@ -17,6 +17,11 @@
#include <glsym/rglgen.h>
void gl_flush(void)
{
glFlush();
}
void gl_clear(void)
{
glClear(GL_COLOR_BUFFER_BIT);

View File

@ -25,4 +25,6 @@ void gl_disable(unsigned cap);
void gl_finish(void);
void gl_flush(void);
#endif

View File

@ -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

View File

@ -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