Commit 3c2fa6ae authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Set the depth blit helper texture address mode to clamp.

On ATI cards we use the driver's GL_ARB_texture_non_power_of_two emulation to support conditional NP2 textures without having to deal with the denormalized coordinates. The default GL_TEXTURE_2D address mode is incompatible with GL_ARB_texture_rectangle however.
parent 387d337a
......@@ -4418,6 +4418,9 @@ void surface_load_ds_location(IWineD3DSurface *iface, DWORD location) {
0, 0, This->currentDesc.Width, This->currentDesc.Height, 0);
glTexParameteri(bind_target, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(bind_target, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexParameteri(bind_target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(bind_target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
glTexParameteri(bind_target, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE);
glTexParameteri(bind_target, GL_DEPTH_TEXTURE_MODE_ARB, GL_LUMINANCE);
glBindTexture(bind_target, old_binding);
......
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