https://bugs.freedesktop.org/show_bug.cgi?id=101326
Bug ID: 101326
Summary: gallium/wgl: Allow context creation without prior
SetPixelFormat()
Product: Mesa
Version: 17.1
Hardware: Other
OS: Windows (All)
Status: NEW
Severity: normal
Priority: medium
Component: Other
Assignee: mesa-dev@lists.freedesktop.org
Reporter: frank.rich...@gmail.com
QA Contact: mesa-dev@lists.freedesktop.org
Created attachment 131764
--> https://bugs.freedesktop.org/attachment.cgi?id=131764&action=edit
Patch: Allow context creation without prior SetPixelFormat()
Currently, when creating a context without having called SetPixelFormat() on
the DC earlier, context creation fails.
However, looking at stw_make_current(), the intention there is to support that
scenario; there, if the pixel format wasn't set, that function falls back to a
default.
So it looks like context creation should work as well.
Attached patch does that by using pretty much the same logic as
stw_make_current().
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev