Module: wine Branch: master Commit: 05c4d0a8b0a98c5b16a7ccf36d94aabf57abb87f URL: http://source.winehq.org/git/wine.git/?a=commit;h=05c4d0a8b0a98c5b16a7ccf36d...
Author: Tobias Jakobi liquid.acid@gmx.net Date: Wed Jul 1 18:36:51 2009 +0200
wined3d: Fix comments about NP2 fixup.
---
dlls/wined3d/state.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index 855bb59..8d441b7 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -3035,8 +3035,8 @@ static void transform_texture(DWORD state, IWineD3DStateBlockImpl *stateblock, W if(generated) { FIXME("Non-power2 texture being used with generated texture coords\n"); } - /* NP2 texcoord fixup is implemented for pixelshaders (currently only in GLSL backend) so - only enable the fixed-function-pipeline fixup via pow2Matrix when no PS is used. */ + /* NP2 texcoord fixup is implemented for pixelshaders so only enable the + fixed-function-pipeline fixup via pow2Matrix when no PS is used. */ if (!use_ps(stateblock)) { TRACE("Non power two matrix multiply fixup\n"); glMultMatrixf(((IWineD3DTextureImpl *) stateblock->textures[texUnit])->baseTexture.pow2Matrix); @@ -3379,8 +3379,7 @@ static void sampler(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DCont } }
- /* Trigger shader constant reloading (for NP2 texcoord fixup) - * Only do this if pshaders are used (note: fixup is currently only implemented in GLSL). */ + /* Trigger shader constant reloading (for NP2 texcoord fixup) */ if (!tex_impl->baseTexture.pow2Matrix_identity) { IWineD3DDeviceImpl* d3ddevice = stateblock->wineD3DDevice; d3ddevice->shader_backend->shader_load_np2fixup_constants(