1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Adds noisy warning if we can't find Texture Image support

This was confusing me for a while as it would simply fail to find the
proper support and I was confronted with a blank screen in certain areas.
This warning (and the associated change of default. I'd like users to see
warnings as well) will help others figure out why there is a blank screen.

My driver supports the necessary extensions (but not 4.3), so if I force it to
advertise 4.3 support (and glsl 420 support) it will properly render.
I tried to create a patch that only looks for the proper extension, and
it works for me, but I feel as though it would depend on behaviour that
most GL implementations would not implement the same way so I've put
it in a separate branch and probably won't request to merge it.
Mesa should get 4.3 support soon enough anyway, so it shouldn't
be an issue for much longer.
This commit is contained in:
matto 2016-03-06 11:34:54 -05:00 committed by Sergey Lipskiy
parent 7fb2ad2d5b
commit 438f5e327b
2 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,7 @@
#define LOG_VERBOSE 4
#define LOG_APIFUNC 5
#define LOG_LEVEL LOG_ERROR
#define LOG_LEVEL LOG_WARNING
#if LOG_LEVEL>0
#ifdef ANDROID

View File

@ -1351,6 +1351,8 @@ void OGLRender::_initExtensions()
m_bImageTexture = false;
#endif
LOG(LOG_VERBOSE, "ImageTexture support: %s\n", m_bImageTexture ? "yes" : "no");
if (!m_bImageTexture)
LOG(LOG_WARNING, "N64 depth compare and depth based fog will not work without Image Textures support provided in OpenGL >= 4.3 or GLES >= 3.1");
if (config.texture.maxAnisotropy != 0 && OGLVideo::isExtensionSupported("GL_EXT_texture_filter_anisotropic")) {
glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &config.texture.maxAnisotropyF);