INFO: When to Select and Realize OpenGL Palettes
Article ID: 151489
Article Last Modified on 11/21/2006
APPLIES TO
- Microsoft Win32 Application Programming Interface, when used with:
- Microsoft Windows NT Server 3.51
- Microsoft Windows NT Server 4.0 Standard Edition
- Microsoft Windows NT Workstation 3.51
- Microsoft Windows NT Workstation 4.0 Developer Edition
This article was previously published under Q151489
SUMMARY
An OpenGL application must select and realize its palette before setting
the current rendering context with wglMakeCurrent.
MORE INFORMATION
An OpenGL application typically makes its rendering context current one
time only when the application is created, or repeatedly just prior to
rendering, as in WM_PAINT for example.
In the first case, the palette must be created, selected, and realized
prior to the initial wglMakeCurrent.
In the second case, the palette should be selected and realized before
every call to wglMakeCurrent.
Additional query words: render colors hrc RGBA
Keywords: kbinfo KB151489