wined3d: Clarify a comment

Henri Verbeet hverbeet at codeweavers.com
Wed Sep 17 07:50:49 CDT 2008


---
 dlls/wined3d/surface.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 5f4aef3..49e5c12 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -46,6 +46,11 @@ static void surface_bind_and_dirtify(IWineD3DSurfaceImpl *This) {
      * Read the unit back instead of switching to 0, this avoids messing around with the state manager's
      * gl states. The current texture unit should always be a valid one.
      *
+     * To be more specific, this is tricky because we can implicitly be called
+     * from sampler() in state.c. This means we can't touch anything other than
+     * whatever happens to be the currently active texture, or we would risk
+     * marking already applied sampler states dirty again.
+     *
      * TODO: Track the current active texture per GL context instead of using glGet
      */
     if (GL_SUPPORT(ARB_MULTITEXTURE)) {
-- 
1.5.6.4



--------------030301080100020505040408--



More information about the wine-patches mailing list