MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / copyTextureBindDef

Method copyTextureBindDef

source/MRViewer/MRRenderGLHelpers.cpp:242–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void FramebufferData::copyTextureBindDef()
243{
244 GL_EXEC( glBindFramebuffer( GL_READ_FRAMEBUFFER, mainFramebuffer_ ) );
245 GL_EXEC( glBindFramebuffer( GL_DRAW_FRAMEBUFFER, copyFramebuffer_ ) );
246 auto copyBits = GL_COLOR_BUFFER_BIT;
247 if ( resDepthTexture_.valid() )
248 copyBits |= GL_DEPTH_BUFFER_BIT;
249 GL_EXEC( glBlitFramebuffer( 0, 0, size_.x, size_.y, 0, 0, size_.x, size_.y, copyBits, GL_NEAREST ) );
250 bindDefault();
251}
252
253void FramebufferData::del()
254{

Callers 8

postDraw_Method · 0.80
drawLowSize_Method · 0.80
convolveX_Method · 0.80
convolveY_Method · 0.80
renderToImageFunction · 0.80
copyTextureMethod · 0.80
doPassesMethod · 0.80

Calls 1

validMethod · 0.45

Tested by

no test coverage detected