Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

glGetString + checkGLExtensions + opengl3+ #48

Open
headupinclouds opened this issue Jun 14, 2018 · 0 comments
Open

glGetString + checkGLExtensions + opengl3+ #48

headupinclouds opened this issue Jun 14, 2018 · 0 comments

Comments

@headupinclouds
Copy link

headupinclouds commented Jun 14, 2018

@xsacha reported a crash/error in glGetString for checkGLExtensions on Android platforms.

"looks like known issue on opengl3+" kbranigan/Simple-OpenGL-Image-Library#8

See:

void Core::checkGLExtensions() {
// get string with extensions seperated by a SPACE
string glExtString((const char*)glGetString(GL_EXTENSIONS));
// get extensions as vector
vector<string> glExt = Tools::split(glExtString);
// check extensions
// OG_LOGINF("Core", "list of extensions:");
for (auto& it : glExt) {
// get lowercase extension string
string extName = it;
transform(extName.begin(), extName.end(), extName.begin(), ::tolower);
// OG_LOGINF("Core", "> %s", extName.c_str());
// check for NPOT mipmapping support
if (it.compare("gl_arb_texture_non_power_of_two") == 0
|| it.compare("gl_oes_texture_npot") == 0) {
glExtNPOTMipmaps = true;
}
}
OG_LOGINF("Core", "NPOT mipmaps support: %d", glExtNPOTMipmaps);
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant