MCPcopy Create free account
hub / github.com/comaps/comaps / SetFilter

Method SetFilter

libs/drape/hw_texture.cpp:234–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234void OpenGLHWTexture::SetFilter(TextureFilter filter)
235{
236 ASSERT(Validate(), ());
237 if (m_params.m_filter != filter)
238 {
239 m_params.m_filter = filter;
240 auto const f = DecodeTextureFilter(m_params.m_filter);
241 GLFunctions::glTexParameter(gl_const::GLMinFilter, f);
242 GLFunctions::glTexParameter(gl_const::GLMagFilter, f);
243 }
244}
245
246bool OpenGLHWTexture::Validate() const
247{

Callers

nothing calls this directly

Calls 2

ASSERTFunction · 0.85
DecodeTextureFilterFunction · 0.85

Tested by

no test coverage detected