Re: [Mesa-dev] [PATCH] main: Fix target checking for CompressedTexSubImage*D.

2015-02-26 Thread Anuj Phogat
On Wed, Feb 25, 2015 at 3:58 PM, Laura Ekstrand wrote: > This fixes a dEQP test failure. In the test, > glCompressedTexSubImage2D was called with target = 0 and failed to throw > INVALID ENUM. This failure was caused by _mesa_get_current_tex_object(ctx, > target) being called before the target ch

[Mesa-dev] [PATCH] main: Fix target checking for CompressedTexSubImage*D.

2015-02-25 Thread Laura Ekstrand
This fixes a dEQP test failure. In the test, glCompressedTexSubImage2D was called with target = 0 and failed to throw INVALID ENUM. This failure was caused by _mesa_get_current_tex_object(ctx, target) being called before the target checking. To remedy this, target checking was made into its own f