Module: wine
Branch: master
Commit: c585b4de9949ec3cb583de4a3a49768835e4103c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c585b4de9949ec3cb583de4a3…
Author: Stefan Dösinger <stefan(a)codeweavers.com>
Date: Fri Jan 16 16:22:09 2009 +0100
wined3d: Duplicate GL textures for srgb switching.
This reduces the number of srgb switching reloads quite a lot. The only
situation in which a reload is needed is if the rgb copy is modified on the GL
side and the srgb copy is needed.
---
dlls/wined3d/basetexture.c | 125 ++++++++++++++++++++-------------
dlls/wined3d/cubetexture.c | 48 +++++--------
dlls/wined3d/device.c | 2 +-
dlls/wined3d/state.c | 4 +-
dlls/wined3d/surface.c | 149 ++++++++++++++++++++++++---------------
dlls/wined3d/surface_base.c | 2 +-
dlls/wined3d/texture.c | 40 ++++-------
dlls/wined3d/volume.c | 2 +-
dlls/wined3d/volumetexture.c | 10 +--
dlls/wined3d/wined3d_private.h | 43 ++++++------
include/wine/wined3d.idl | 4 +-
11 files changed, 236 insertions(+), 193 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=c585b4de9949ec3cb583d…