Module: wine Branch: master Commit: 53a7951230bdb2f084bf354d74608c144352047c URL: http://source.winehq.org/git/wine.git/?a=commit;h=53a7951230bdb2f084bf354d74...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Wed Sep 17 14:50:49 2008 +0200
wined3d: Clarify a comment.
---
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)) {