1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #include "callbacks.hh" #include "objects/Framebuffer.hh" #include "objects/Program.hh" void glow::notifyShaderExecuted() { // notify Shader auto shader = Program::getCurrentProgram(); if (shader) { shader->program->validateTextureMipmaps(); shader->program->checkUnchangedUniforms(); } // notify FBO auto fbo = Framebuffer::getCurrentBuffer(); if (fbo != nullptr) fbo->buffer->notifyShaderExecuted(); } |