[PATCH 3/5] wined3d: Print a more obvious message if a format doesn't have a corresponding GL internal format.

Henri Verbeet hverbeet at codeweavers.com
Mon Jul 9 16:16:39 CDT 2012


---
 dlls/wined3d/surface.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 95a5072..2d37cdf 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2661,6 +2661,9 @@ static void surface_allocate_surface(struct wined3d_surface *surface, const stru
         internal = format->glInternal;
     }
 
+    if (!internal)
+        FIXME("No GL internal format for format %s.\n", debug_d3dformat(format->id));
+
     if (format->flags & WINED3DFMT_FLAG_HEIGHT_SCALE)
     {
         height *= format->height_scale.numerator;
-- 
1.7.8.6




More information about the wine-patches mailing list