App::I static singleton to pointer
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user