javier-martinez-palmer / oglsuperbible5

Automatically exported from code.google.com/p/oglsuperbible5
0 stars 0 forks source link

Block_Redux fails to render - workaround #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open BlockRedux in Chapter13
2. Compile and run Block_Redux in Chapter 13

Expected: see the wireframe block on the floor
Got: just a white diagonal line bisecting the screen

What version of the product are you using? On what operating system?
oglsuperbible5 svn r176
Visual Studio C++ 2010 Express
Windows 7

I have a workaround for this issue: force the program to create a lower-level 
rendering context, viz:
        g_hRC = wglCreateContextAttribsARB(g_hDC, 0, attribs);
        if (true || g_hRC == NULL)
        {
            printf("!!! Could not create an OpenGL 3.3 context.\n");
            attribs[3] = 2;
            g_hRC = wglCreateContextAttribsARB(g_hDC, 0, attribs);
            if (true || g_hRC == NULL)
            {
                printf("!!! Could not create an OpenGL 3.2 context.\n");
                attribs[3] = 1;
                g_hRC = wglCreateContextAttribsARB(g_hDC, 0, attribs);

.....presumably the cause of this problem is that a higher opengl version is 
being reported than the program can create a context for. I don't really 
understand the implications, or whether it should means the driver is incorrect 
or that the program should be changed, but perhaps this post may be of some 
help to others.

Original issue reported on code.google.com by pjlby...@gmail.com on 17 Nov 2010 at 6:04

GoogleCodeExporter commented 8 years ago
PS My gprahics card is a Radeon 5670 (yes, with the latest drivers)

Original comment by pjlby...@gmail.com on 17 Nov 2010 at 6:05