mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Remove verbosity.h header dependency on gl_capabilities.c
This commit is contained in:
parent
0c138bb719
commit
280aa831b5
@ -24,7 +24,6 @@
|
|||||||
|
|
||||||
#include "gl_capabilities.h"
|
#include "gl_capabilities.h"
|
||||||
#include "../video_driver.h"
|
#include "../video_driver.h"
|
||||||
#include "../../verbosity.h"
|
|
||||||
|
|
||||||
static bool gl_core_context = false;
|
static bool gl_core_context = false;
|
||||||
|
|
||||||
@ -70,8 +69,6 @@ static bool gl_query_extension(const char *ext)
|
|||||||
ret = str && strstr(str, ext);
|
ret = str && strstr(str, ext);
|
||||||
}
|
}
|
||||||
|
|
||||||
RARCH_LOG("Querying GL extension: %s => %s\n",
|
|
||||||
ext, ret ? "exists" : "doesn't exist");
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -224,11 +221,9 @@ bool gl_check_capability(enum gl_capability_enum enum_idx)
|
|||||||
return true;
|
return true;
|
||||||
case GL_CAPS_ES2_COMPAT:
|
case GL_CAPS_ES2_COMPAT:
|
||||||
#ifndef HAVE_OPENGLES
|
#ifndef HAVE_OPENGLES
|
||||||
|
/* ATI card detected, skipping check for GL_RGB565 support... */
|
||||||
if (vendor && renderer && (strstr(vendor, "ATI") || strstr(renderer, "ATI")))
|
if (vendor && renderer && (strstr(vendor, "ATI") || strstr(renderer, "ATI")))
|
||||||
{
|
|
||||||
RARCH_LOG("[GL]: ATI card detected, skipping check for GL_RGB565 support.\n");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
if (gl_query_extension("ARB_ES2_compatibility"))
|
if (gl_query_extension("ARB_ES2_compatibility"))
|
||||||
return true;
|
return true;
|
||||||
@ -239,11 +234,10 @@ bool gl_check_capability(enum gl_capability_enum enum_idx)
|
|||||||
if (gles3)
|
if (gles3)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
/* Extension GL_EXT_unpack_subimage, can copy textures faster
|
||||||
|
* than using UNPACK_ROW_LENGTH */
|
||||||
if (gl_query_extension("GL_EXT_unpack_subimage"))
|
if (gl_query_extension("GL_EXT_unpack_subimage"))
|
||||||
{
|
|
||||||
RARCH_LOG("[GL]: Extension GL_EXT_unpack_subimage, can copy textures faster using UNPACK_ROW_LENGTH.\n");
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case GL_CAPS_FULL_NPOT_SUPPORT:
|
case GL_CAPS_FULL_NPOT_SUPPORT:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user