check OpenGL debug extension

This commit is contained in:
2018-10-25 16:51:56 +02:00
parent 46a4b217bf
commit 4c41be1336

View File

@@ -235,13 +235,12 @@ void App::download(std::string url, std::string dest_filepath, std::function<voi
bool App::check_license()
{
return true; // TODO: for distribuiton only
// return true; // TODO: for distribuiton only
/*
CURL *curl = curl_easy_init();
if (curl)
{
std::string url = "http://omigamedev.com/panopainter/79516B99-8E67-40AD-B12F-149A5A9C2E15";
std::string url = "http://panopainter.com/license/53C5DE19-7B8F-42B8-8399-C99D28B66401.php";
//std::string url = "https://panopainter.com/license/E8EDC2FE-E1BD-4AB1-91BD-FCCD926739BD.php"; // wacom
//std::string url = "https://panopainter.com/license/A744FBA9-BC6C-43C8-BD24-0CCE24B3D985.php"; // others
@@ -265,7 +264,6 @@ bool App::check_license()
return true;
}
return false;
*/
}
void App::upload(std::string filename, std::string name, std::function<void(float)> progress)
@@ -340,12 +338,16 @@ void App::init()
LOG("GL vendor: %s", glGetString(GL_VENDOR));
LOG("GL renderer: %s", glGetString(GL_RENDERER));
// GLint n_exts;
// glGetIntegerv(GL_NUM_EXTENSIONS, &n_exts);
// for (int i = 0; i < n_exts; i++)
// {
// LOG("%s", glGetStringi(GL_EXTENSIONS, i));
// }
GLint n_exts;
glGetIntegerv(GL_NUM_EXTENSIONS, &n_exts);
for (int i = 0; i < n_exts; i++)
{
std::string ext = (const char*)glGetStringi(GL_EXTENSIONS, i);
if (ext.find("debug") != std::string::npos)
{
LOG("%s", glGetStringi(GL_EXTENSIONS, i));
}
}
LOG("Screen Resolution: %dx%d", (int)width, (int)height);