summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-06-15 19:14:42 -0600
committerJose Fonseca <[email protected]>2015-11-09 11:25:59 +0000
commit75d1e363ff142b273b30d8cd236bb1c92c1b2f27 (patch)
tree087bf343f81b1a1202e6526939525a8372f7b81c /src/glsl
parent8083943e2e5b3f2a7201650a586b597dff481d43 (diff)
st/wgl: fix double-present on swapbuffers bug
The stw_st_framebuffer_present_locked() function was getting called twice per SwapBuffers. First, when st_context_iface::flush() was called from DrvSwapBuffers() because the ST_FLUSH_FRONT flag was given. Second, by stw_st_swap_framebuffer_locked() which does the actual SwapBuffers. Two code changes: 1. Pass ST_FLUSH_END_OF_FRAME, instead of ST_FLUSH_FRONT. 2. Move the implementation of stw_flush_current_locked() into DrvSwapBuffers() since it's not called anywhere else. Not much change in perf for benchmarks like Lightsmark, but some simple Mesa demos are measurably faster. Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/glsl')
0 files changed, 0 insertions, 0 deletions