Module: wine
Branch: master
Commit: 7665699411a0a3b1cd7444d9d6e2035f1d007b1a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7665699411a0a3b1cd7444d9d…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com>
Date: Thu Jun 25 11:49:14 2009 +0200
comctl32/tests: Fix test failures on comctl32 < 5.80.
---
dlls/comctl32/tests/updown.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/tests/updown.c b/dlls/comctl32/tests/updown.c
index 433c190..f2b3cc2 100644
--- a/dlls/comctl32/tests/updown.c
+++ b/dlls/comctl32/tests/updown.c
@@ -426,8 +426,14 @@ static void test_updown_pos32(void)
expect(0,low);
expect(1000,high);
- /* Set position to 500, don't check return since it is unset*/
- SendMessage(updown, UDM_SETPOS32, 0 , 500 );
+ /* Set position to 500 */
+ r = SendMessage(updown, UDM_SETPOS32, 0 , 500 );
+ if (!r)
+ {
+ win_skip("UDM_SETPOS32 and UDM_GETPOS32 need 5.80\n");
+ return;
+ }
+ expect(100,r); /* As set by test_updown_pos() */
/* Since UDM_SETBUDDYINT was not set at creation bRet will always be true as a return from UDM_GETPOS32 */
Module: wine
Branch: master
Commit: a9f912466b94a93b84a0b30d374b7448faff4b82
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a9f912466b94a93b84a0b30d3…
Author: Tobias Jakobi <tjakobi(a)xdf79.math.uni-bielefeld.de>
Date: Fri May 29 15:01:44 2009 +0200
wined3d: Force NP2 fixup constant reloading in shader_glsl_select.
---
dlls/wined3d/glsl_shader.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
index 2fc8586..e797889 100644
--- a/dlls/wined3d/glsl_shader.c
+++ b/dlls/wined3d/glsl_shader.c
@@ -4250,6 +4250,13 @@ static void shader_glsl_select(IWineD3DDevice *iface, BOOL usePS, BOOL useVS) {
if (program_id) TRACE("Using GLSL program %u\n", program_id);
GL_EXTCALL(glUseProgramObjectARB(program_id));
checkGLcall("glUseProgramObjectARB");
+
+ /* In case that NP2 texcoord fixup data is found for the selected program, trigger a reload of the
+ * constants. This has to be done because it can't be guaranteed that sampler() (from state.c) is
+ * called between selecting the shader and using it, which results in wrong fixup for some frames. */
+ if (priv->glsl_program && priv->glsl_program->np2Fixup_info) {
+ This->shader_backend->shader_load_np2fixup_constants(iface, usePS, useVS);
+ }
}
/* GL locking is done by the caller */