Skip to content

Commit

Permalink
Store and restore OpenGL states whilst rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
billyquith committed Aug 13, 2016
1 parent 66db614 commit 155a883
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/samples/SFML2/SFML2Sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ int main()

// Render the control canvas
app.clear();
// <user render here>
app.pushGLStates();
canvas->RenderCanvas();
app.popGLStates();
app.display();
}

Expand Down

0 comments on commit 155a883

Please sign in to comment.