| 139 | } |
| 140 | |
| 141 | static void DisableMultisample(tgfx::Context* context, bool usesMSAA) { |
| 142 | if (usesMSAA && context->caps()->multisampleDisableSupport) { |
| 143 | auto gl = tgfx::GLFunctions::Get(context); |
| 144 | gl->disable(GL_MULTISAMPLE); |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | bool RuntimeFilter::onDraw(const tgfx::RuntimeProgram* program, |
| 149 | const std::vector<tgfx::BackendTexture>& sources, |