mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-19 00:41:53 +00:00
(GL) Store major/minor version
This commit is contained in:
parent
e7749c5d42
commit
6feff79547
@ -174,6 +174,9 @@
|
||||
|
||||
typedef struct gl
|
||||
{
|
||||
int version_major;
|
||||
int version_minor;
|
||||
|
||||
bool vsync;
|
||||
GLuint texture[GFX_MAX_TEXTURES];
|
||||
unsigned tex_index; /* For use with PREV. */
|
||||
|
@ -2495,6 +2495,9 @@ static void *gl_init(const video_info_t *video, const input_driver_t **input, vo
|
||||
RARCH_LOG("[GL]: Vendor: %s, Renderer: %s.\n", vendor, renderer);
|
||||
RARCH_LOG("[GL]: Version: %s.\n", version);
|
||||
|
||||
if (version && version[0] != '\0')
|
||||
sscanf(version, "%d.%d", &gl->version_major, &gl->version_minor);
|
||||
|
||||
#ifndef RARCH_CONSOLE
|
||||
rglgen_resolve_symbols(ctx_driver->get_proc_address);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user