path: root/src/mesa/state_tracker
diff options
authorBrian Paul <>2009-06-17 08:43:17 -0600
committerBrian Paul <>2009-06-17 11:30:30 -0600
commit1b1acf6fa8189867a15416a098fe70e05913a48b (patch)
tree4dadc0aebb5fa7816feb099e605b67e5b448e3ee /src/mesa/state_tracker
parent1fa42650382e3e0efe612d69e491ea8545a00b93 (diff)
mesa: rework viewport/scissor initialization code
The first time a context is bound to a drawable, the viewport and scissor bounds are initialized to the buffer's size. This is actually a bit tricky. A new _mesa_check_init_viewport() function is called in several places to check if the viewport has been initialized. We also use a new ctx->ViewportInitialized flag instead of the overloaded ctx->FirstTimeCurrent flag. Hand-picked from mesa_7_5_branch, commit 3f856c6b6b7fa95ef97a8712876de88d7d57932e
Diffstat (limited to 'src/mesa/state_tracker')
0 files changed, 0 insertions, 0 deletions