wined3d: Check for error conditions in GL call.
authorMatteo Bruni <matteo.mystral@gmail.com>
Mon, 21 Jun 2010 20:14:58 +0000 (22:14 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 22 Jun 2010 09:22:38 +0000 (11:22 +0200)
dlls/wined3d/surface.c

index d363feb1da063e9544567a6634fde990fd8d51ac..73c5aff5f9e542274dced37ac002322fdde9a359 100644 (file)
@@ -848,6 +848,7 @@ static void surface_allocate_surface(IWineD3DSurfaceImpl *This, const struct win
     {
         GL_EXTCALL(glCompressedTexImage2DARB(This->texture_target, This->texture_level,
                 internal, width, height, 0, This->resource.size, mem));
+        checkGLcall("glCompressedTexImage2DARB");
     }
     else
     {