[Piglit] [PATCH 2/4] fbo-scissor-bitmap: fix for non-NPOT
Marek Olšák
maraeo at gmail.com
Mon Aug 16 13:16:29 PDT 2010
On Mon, Aug 16, 2010 at 2:46 PM, Luca Barbieri <luca at luca-barbieri.com>wrote:
> fbo-scissor-bitmap incorrectly requests an NPOT texture without
> checking for ARB_texture_non_power_of_two
> ---
> tests/fbo/fbo-scissor-bitmap.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/fbo/fbo-scissor-bitmap.c
> b/tests/fbo/fbo-scissor-bitmap.c
> index c944435..f628d2e 100644
> --- a/tests/fbo/fbo-scissor-bitmap.c
> +++ b/tests/fbo/fbo-scissor-bitmap.c
> @@ -350,8 +350,8 @@ piglit_display()
> GLboolean pass = GL_TRUE;
>
> /* Use different width/height from window to catch mistakes */
> - int fbo_width = piglit_width + 100;
> - int fbo_height = piglit_height + 100;
> + int fbo_width = 512;
> + int fbo_height = 512;
> GLuint fbo, texture;
>
> glGenFramebuffersEXT(1, &fbo);
> --
> 1.7.0.4
>
Pushed, thanks. I can imagine having fbo-scissor-bitmap-npot for the NPOT
texture case.
-Marek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20100816/9323d4f4/attachment.html>
More information about the Piglit
mailing list