File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
vclib/render/include/vclib/bgfx Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -179,11 +179,6 @@ class CanvasBGFX
179
179
*/
180
180
void onPaint ()
181
181
{
182
- bgfx::setViewFrameBuffer (mViewId , mFbh );
183
- bgfx::touch (mViewId );
184
- // ask the derived frame to draw all the drawer objects:
185
- DerivedRenderApp::CNV::draw (derived ());
186
-
187
182
const bool newReadRequested =
188
183
(mReadRequest != std::nullopt && !mReadRequest ->isSubmitted ());
189
184
@@ -198,6 +193,12 @@ class CanvasBGFX
198
193
}
199
194
}
200
195
else {
196
+ bgfx::setViewFrameBuffer (mViewId , mFbh );
197
+ bgfx::touch (mViewId );
198
+
199
+ // ask the derived frame to draw all the drawer objects:
200
+ DerivedRenderApp::CNV::draw (derived ());
201
+
201
202
mCurrFrame = bgfx::frame ();
202
203
203
204
// this is required only when using Qt in macOS
You can’t perform that action at this time.
0 commit comments