mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
(GL_CORE) More updates
This commit is contained in:
parent
4f542c051d
commit
c55873c324
@ -256,23 +256,6 @@ static INLINE void gl_bind_texture(GLuint id, GLint wrap_mode, GLint mag_filter,
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, min_filter);
|
||||
}
|
||||
|
||||
static INLINE bool gl_set_core_context(enum retro_hw_context_type ctx_type)
|
||||
{
|
||||
gfx_ctx_flags_t flags;
|
||||
if (ctx_type != RETRO_HW_CONTEXT_OPENGL_CORE)
|
||||
return false;
|
||||
|
||||
/**
|
||||
* Ensure that the rest of the frontend knows we have a core context
|
||||
*/
|
||||
flags.flags = 0;
|
||||
BIT32_SET(flags.flags, GFX_CTX_FLAGS_GL_CORE_CONTEXT);
|
||||
|
||||
video_context_driver_set_flags(&flags);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool gl_query_core_context_in_use(void);
|
||||
|
||||
bool gl_load_luts(
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <boolean.h>
|
||||
#include <retro_inline.h>
|
||||
#include <retro_common_api.h>
|
||||
#include <gfx/math/matrix_4x4.h>
|
||||
|
||||
@ -1202,6 +1203,23 @@ void video_driver_set_gpu_api_version_string(const char *str);
|
||||
|
||||
const char* video_driver_get_gpu_api_version_string(void);
|
||||
|
||||
static INLINE bool gl_set_core_context(enum retro_hw_context_type ctx_type)
|
||||
{
|
||||
gfx_ctx_flags_t flags;
|
||||
if (ctx_type != RETRO_HW_CONTEXT_OPENGL_CORE)
|
||||
return false;
|
||||
|
||||
/**
|
||||
* Ensure that the rest of the frontend knows we have a core context
|
||||
*/
|
||||
flags.flags = 0;
|
||||
BIT32_SET(flags.flags, GFX_CTX_FLAGS_GL_CORE_CONTEXT);
|
||||
|
||||
video_context_driver_set_flags(&flags);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
extern video_driver_t video_gl_core;
|
||||
extern video_driver_t video_gl2;
|
||||
extern video_driver_t video_gl1;
|
||||
|
@ -157,7 +157,6 @@ static void menu_display_gl_core_draw(menu_display_ctx_draw_t *draw,
|
||||
const float *vertex = NULL;
|
||||
const float *tex_coord = NULL;
|
||||
const float *color = NULL;
|
||||
struct gl_core_vertex *pv = NULL;
|
||||
GLuint texture = 0;
|
||||
gl_core_t *gl = (gl_core_t*)video_info->userdata;
|
||||
const struct gl_core_buffer_locations *loc = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user