OSDN Git Service

st/wgl: add a stw_device::initialized field
authorBrian Paul <brianp@vmware.com>
Fri, 20 May 2016 20:24:59 +0000 (14:24 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 30 Jun 2016 18:43:50 +0000 (12:43 -0600)
commit395ee18bacf04a9aac6996bca8364bde24f2f3b0
tree8b7c14227438a45ddbf86a9c2b7edcaaa357c06b
parent128feef40e81b320af59edc7a2fcf6b2ad8d2b8d
st/wgl: add a stw_device::initialized field

Set when the stw_dev object's initialization is completed.  We test
for this in the window callback function to avoid potential crashes
on start-up in multi-threaded applications.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/state_trackers/wgl/stw_device.c
src/gallium/state_trackers/wgl/stw_device.h
src/gallium/state_trackers/wgl/stw_framebuffer.c