App::I static singleton to pointer

This commit is contained in:
2019-07-11 18:08:17 +02:00
parent 92dd00d910
commit b89274e7a6
33 changed files with 417 additions and 412 deletions

View File

@@ -155,7 +155,7 @@ bool Shader::reload()
bool Shader::create(const char* vertex, const char* fragment)
{
bool ret = true;
App::I.render_task([&]
App::I->render_task([&]
{
GLint status;
static char infolog[4096];
@@ -278,7 +278,7 @@ void Shader::destroy()
{
if (prog)
{
App::I.render_task_async([prog=prog]
App::I->render_task_async([prog=prog]
{
glUseProgram(0);
glDeleteProgram(prog);