wined3d: Print a more obvious message if a format doesn't have a corresponding GL internal format.

This commit is contained in:
Henri Verbeet 2012-07-09 23:16:39 +02:00 committed by Alexandre Julliard
parent 8ad98cdbee
commit 2907913fad
1 changed files with 3 additions and 0 deletions

View File

@ -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;