Hi Darrell,

This is the 2nd fairly recent issue I notice you tracked down to drivers 
being very unhappy with specific modes set.  I'm curious, how did you go 
about figuring out which call was killing the driver?  Is it 
trial-and-error or you have a GL-driver-writer's mind and can make 
educated guesses? :) Or...

-Nathan

>
> Author: dcommander <dcommander>
> Date:   Tue Mar 22 21:17:32 2011 +0000
>
> diff --git a/rr/pbwin.cpp b/rr/pbwin.cpp
> index 63dad42..fc20d7a 100644
> --- a/rr/pbwin.cpp
> +++ b/rr/pbwin.cpp
> @@ -756,6 +756,16 @@ void pbwin::readpixels(GLint x, GLint y, GLint w, GLint 
> pit
>         else if(pitch%2==0) glPixelStorei(GL_PACK_ALIGNMENT, 2);
>         else if(pitch%1==0) glPixelStorei(GL_PACK_ALIGNMENT, 1);
>
> +       glPushAttrib(GL_PIXEL_MODE_BIT);
> +       _glPixelTransferf(GL_RED_SCALE, 1.0);
> +       _glPixelTransferf(GL_RED_BIAS, 0.0);
> +       _glPixelTransferf(GL_GREEN_SCALE, 1.0);
> +       _glPixelTransferf(GL_GREEN_BIAS, 0.0);
> +       _glPixelTransferf(GL_BLUE_SCALE, 1.0);
> +       _glPixelTransferf(GL_BLUE_BIAS, 0.0);
> +       _glPixelTransferf(GL_ALPHA_SCALE, 1.0);
> +       _glPixelTransferf(GL_ALPHA_BIAS, 0.0);
> +
>         if(usepbo)
>         {
>                 if(!ext)
> @@ -905,6 +915,7 @@ void pbwin::readpixels(GLint x, GLint y, GLint w, GLint 
> pitc
>         }
>
>         glRenderMode(oldrendermode);
> +       glPopAttrib();
>         glPopClientAttrib();
>         tc.restore();
>

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
VirtualGL-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtualgl-users

Reply via email to