Juce OpenGL Component with Microsoft Driver

Hi Jules,
Sorry for the delay in reply.
I actually got some code that demonstrates the problem with juce opengl-component when using the Microsoft Generic drivers. Please note ,when the latest Nvidia or ATI drivers are installed, then there is no problem with juce-opengl-compo.
This problem does not exist with my-opengl-component.

I am attaching the source code for juce+juce demo. This is a quick-dirty
code written for demonstrating the problem. Sorry for that.
Also note that I have tweaked juce_win32_windowing for selecting Microsoft Generic Drivers. I am doing the same thing for my code as well.

Please see if you can spot the problem with juce_opengl_component.

(source code->)http://www.sharebigfile.com/file/121448/juce-1-39-zip.html

Compile the juce demo in the folder, works only on windows

Many Thanks,
Yogesh

Ok, I’ve found a fix for this. It’s a bit bizarre, but try this change in the windowing code:

[code] case WM_WINDOWPOSCHANGED:
handleMovedOrResized();

            if (dontRepaint)
                break;  // needed for non-accelerated openGL windows to draw themselves correctly..
            else
                return 0;

[/code]

Looks like the software renderer needs this callback to set itself up correctly…

Yup that thing Helps :smiley:

Thanks a lot Jules for the help.
Really appreciate that.

Regards,
Yogesh