MCPcopy Create free account
hub / github.com/Tencent/libpag / DisableMultisample

Function DisableMultisample

src/rendering/filters/RuntimeFilter.cpp:141–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141static 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
148bool RuntimeFilter::onDraw(const tgfx::RuntimeProgram* program,
149 const std::vector<tgfx::BackendTexture>& sources,

Callers 1

onDrawMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected