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

2015-02-26 Thread Anuj Phogat
On Wed, Feb 25, 2015 at 6:04 PM, Laura Ekstrand wrote: > > This fixes a dEQP test failure. In the test, > glCopyTexSubImage2D 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 checki

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

2015-02-25 Thread Laura Ekstrand
This fixes a dEQP test failure. In the test, glCopyTexSubImage2D 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 separated from the main e