<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - gallium/wgl: Allow context creation without prior SetPixelFormat()"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101326">101326</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>gallium/wgl: Allow context creation without prior SetPixelFormat()
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>17.1
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>frank.richter@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=131764" name="attach_131764" title="Patch: Allow context creation without prior SetPixelFormat()">attachment 131764</a> <a href="attachment.cgi?id=131764&action=edit" title="Patch: Allow context creation without prior SetPixelFormat()">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=101326&attachment=131764'>[review]</a>
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().</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>