mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Win32: Ask for destination alpha in the OpenGL context. Fixes some issues in non-buffered rendering, see #3436.
This apparently still happens on Android so will need to fix it separately there.
This commit is contained in:
parent
d80c82b3c4
commit
ee6f2613a8
1 changed files with 4 additions and 2 deletions
|
@ -91,6 +91,8 @@ bool GL_Init(HWND window, std::string *error_message) {
|
|||
hWnd = window;
|
||||
GLuint PixelFormat;
|
||||
|
||||
// TODO: Change to use WGL_ARB_pixel_format instead
|
||||
|
||||
static const PIXELFORMATDESCRIPTOR pfd = {
|
||||
sizeof(PIXELFORMATDESCRIPTOR), // Size Of This Pixel Format Descriptor
|
||||
1, // Version Number
|
||||
|
@ -98,9 +100,9 @@ bool GL_Init(HWND window, std::string *error_message) {
|
|||
PFD_SUPPORT_OPENGL | // Format Must Support OpenGL
|
||||
PFD_DOUBLEBUFFER, // Must Support Double Buffering
|
||||
PFD_TYPE_RGBA, // Request An RGBA Format
|
||||
32, // Select Our Color Depth
|
||||
24, // Select Our Color Depth
|
||||
0, 0, 0, 0, 0, 0, // Color Bits Ignored
|
||||
0, // No Alpha Buffer
|
||||
8, // No Alpha Buffer
|
||||
0, // Shift Bit Ignored
|
||||
0, // No Accumulation Buffer
|
||||
0, 0, 0, 0, // Accumulation Bits Ignored
|
||||
|
|
Loading…
Add table
Reference in a new issue