Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: problem when switching color buffer for reading

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2012
    Posts
    10

    problem when switching color buffer for reading

    Hi,

    calling

    glReadBuffer(GL_FRONT);

    does not suffice on my windows machine when Microsoft GDI renderer selected. glGetError() returns GL_INVALID_OPERATION error in an infinite loop.

    I tried to find what could be the cause of the problem, but haven't found anything interesting. GL Context seems to be current and gl instance initialized. Also there are no glBegin() and glEnd() commands surrounding glReadBuffer(GL_FRONT) or glGetError().

    I am not sure about Microsoft GDI implementation (and other implementations), but I think front buffer should always exist, no matter whether it is single- or double-buffering engine.

    Any help or idea would be much appreciated.

    Thanks in advance,
    Pavel

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    1,128
    One question: Why do you need Microsoft's implementation?

  3. #3
    Junior Member Newbie
    Join Date
    Dec 2012
    Posts
    10
    Quote Originally Posted by thokra View Post
    One question: Why do you need Microsoft's implementation?
    My app is written in opengl 1.1. because of Microsoft GDI driver. As it is default software renderer on Windows, I want to have it supported.

    Thanks in advance,
    Pavel

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    1,128
    As it is default software renderer on Windows, I want to have it supported.
    That is complete nonsense.

  5. #5
    Junior Member Newbie
    Join Date
    Dec 2012
    Posts
    10
    Quote Originally Posted by thokra View Post
    That is complete nonsense.

    Well,

    let me correct myself. My app is written in JOGL and runs in MATLAB
    environment. If no hardware OpenGL found, Microsoft GDI renderer is selected by MATLAB.

    Thanks,
    Pavel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •