MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / makeActive

Method makeActive

Engine/source/gfx/gl/gfxGLWindowTarget.cpp:132–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void GFXGLWindowTarget::makeActive()
133{
134 //make the rendering context active on this window
135 _makeContextCurrent();
136
137 if(mBackBufferFBO)
138 {
139 glBindFramebuffer( GL_FRAMEBUFFER, mBackBufferFBO);
140 GFXGL->getOpenglCache()->setCacheBinded(GL_FRAMEBUFFER, mBackBufferFBO);
141 }
142 else
143 {
144 glGenFramebuffers(1, &mBackBufferFBO);
145 _setupAttachments();
146 CHECK_FRAMEBUFFER_STATUS();
147 }
148}
149
150bool GFXGLWindowTarget::present()
151{

Callers 1

_updateRenderTargetsMethod · 0.45

Calls 2

setCacheBindedMethod · 0.80
getOpenglCacheMethod · 0.80

Tested by

no test coverage detected