I have a legacy OpenGL application which sets a pixel format based of ChoosePixelFormat instead of wglChoosePixelFormatARB or wglGetPixelFormatAttribivARB/wglGetPixelFormatAttribfvARB. ChoosePixelFormat doesn't allow to set a framebuffer color space explicitly using WGL_EXT_colorspace Despite that I have noticed that calling glEnable(GL_FRAMEBUFFER_SRB) provides a color space conversion when render a test texture. How does it work ? Does ChoosePixelFormat sets sRGB colorspace by default ?
WGL - ChoosePixelFormat and sRGB framebuffer
313 Views Asked by Irbis At
1
There are 1 best solutions below
Related Questions in OPENGL
- setting OpenGL version in objective-C
- How to run OpenGL version 3.3 (with Intel HD 4000) on Ubuntu 15.04
- Can linear filtering be used for an FBO blit of an MSAA texture to non-MSAA texture?
- How to get shader version from QOpenGLShader?
- "Capture GPU Frame" in XCode -- iOS only?
- Difference between glewGetString(GLEW_VERSION) and glewIsSupported
- Tesselation result flickering - OpenGL/GLSL
- Water rendering in opengl
- Texture mapping consuming physical memory
- Rotating a Cube using Quaternions in PyOpenGL
- Switching from perspective orthographic projection in OpenGL
- FreeType2 and OpenGL : Use unicode
- Should Meshes with and without Skeleton use different Shaders?
- How to get accurate 3D depth from 2D screen mouse click for large scale object in OpenGL?
- Trying to load 2d texture with glTexImage2D, but just getting blank
Related Questions in SRGB
- sRGB Framebuffer on OpenGL ES 3.0
- Where do I get information about the support for 12 Bit color depth on the web?
- Color Profile strategies for developing web sites with sRGB photos and Monitor RGB comps
- Using sRGB colour in QGLFramebufferObject with multisampling
- iccp:Not recognizing known sRGB profile that has been edited
- fast Linear into sRGB
- Check color encoding in the default framebuffer draw buffer for SRGB
- Accuracy of Conversion between sRGB and Linear RGB and Displaying only the Luminance component of an image
- Electron and Webkit browsers display wrong colors
- Difference between colors with a same rgb value in sRGB space and CIE RGB space
- CMYK vs sRGB - which one is better
- OpenGL Automatic sRGB Conversion vs Manual sRGB Conversion
- OpenGL gamma correction with GL_FRAMEBUFFER_SRGB
- What should be the input to skimage.color.rgb2lab?
- Three.js show sRGB colors wrong
Related Questions in WGL
- Not understanding why context creation failing with win32 api and OpenGL and wgl
- Why are functions duplicated between opengl32.dll and gdi32.dll?
- Get OpenGL (WGL) context from QOpenGLContext
- OpenGL EXTension not detected by GLEW?
- Is there a way to determine what CGLFlushDrawable is doing to the back buffer?
- WGL: No double buffering + multi sampling = FAIL?
- WGL - ChoosePixelFormat and sRGB framebuffer
- Request the most recent version of OpenGL context
- Create OpenGL window win32 API
- SetPixelFormat return false when using pixel format gotten from wglChoosePixelFormatARB
- Multiple windows with shared context
- Potential Misuse of WGL, crash in glDrawArrays
- wglCreateContextAttribsARB() gives me 4.4 when I ask for 2.0
- OpenGL 1.0 and 1.1 Function Pointers on Windows
- How can i enable shaders using clean xlib with opengl
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You already answered your own question:
There is nothing in the rules for
ChoosePixelFormatwhich forbids an implementation to return a pixel format which supports sRGB encoding. But it is also not required. You can't rely on anything here. But on a modern windows using a compositor ("Aero" or whatever microsoft likes to call it), you typically will see sRGB support, but still there is no guarantee.