Commit 2e786e09 authored by H. Verbeet's avatar H. Verbeet Committed by Alexandre Julliard

wined3d: Use texture2D to sample in pshader_glsl_texdp3tex().

parent bb1a1377
......@@ -1625,7 +1625,7 @@ void pshader_glsl_texdp3tex(SHADER_OPCODE_ARG* arg) {
shader_glsl_append_dst(arg->buffer, arg);
shader_glsl_get_write_mask(arg->dst, dst_mask);
shader_addline(arg->buffer, "texture1D(Psampler%u, dot(gl_TexCoord[%u].xyz, %s))%s);\n",
shader_addline(arg->buffer, "texture2D(Psampler%u, vec2(dot(gl_TexCoord[%u].xyz, %s), 0.5))%s);\n",
sampler_idx, sampler_idx, src0_param.param_str, dst_mask);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment