Module: wine Branch: master Commit: bfe7067973c38c3974389b68143259db2e46e97b URL: http://source.winehq.org/git/wine.git/?a=commit;h=bfe7067973c38c3974389b6814...
Author: Stefan Dösinger stefan@codeweavers.com Date: Thu Aug 7 14:51:35 2008 -0500
wined3d: Ask the ffp/shader/blit implementation about format support.
If a format is not supported natively by opengl, a shader may be able to convert it. Up to now, CheckDeviceFormat had magic knowldge which GL extensions lead to which supported format. This patch adds functions that allow CheckDeviceFormat to ask the actual implementation for its capabilities.
---
dlls/wined3d/arb_program_shader.c | 19 ++++ dlls/wined3d/ati_fragment_shader.c | 14 +++ dlls/wined3d/baseshader.c | 18 ++++- dlls/wined3d/directx.c | 152 +++++++++++++++++----------------- dlls/wined3d/glsl_shader.c | 18 ++++ dlls/wined3d/nvidia_texture_shader.c | 7 ++ dlls/wined3d/state.c | 5 + dlls/wined3d/surface.c | 8 ++- dlls/wined3d/utils.c | 15 ++++ dlls/wined3d/wined3d_private.h | 3 + 10 files changed, 180 insertions(+), 79 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=bfe7067973c38c3974389b...