<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:philip+freedesktop@breakawayconsulting.com.au" title="Philip Derrin <philip+freedesktop@breakawayconsulting.com.au>"> <span class="fn">Philip Derrin</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Segfault when calling glViewport on surfaceless EGL context without bound FBO"
href="https://bugs.freedesktop.org/show_bug.cgi?id=90821">bug 90821</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>philip+freedesktop@breakawayconsulting.com.au
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Segfault when calling glViewport on surfaceless EGL context without bound FBO"
href="https://bugs.freedesktop.org/show_bug.cgi?id=90821#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Segfault when calling glViewport on surfaceless EGL context without bound FBO"
href="https://bugs.freedesktop.org/show_bug.cgi?id=90821">bug 90821</a>
from <span class="vcard"><a class="email" href="mailto:philip+freedesktop@breakawayconsulting.com.au" title="Philip Derrin <philip+freedesktop@breakawayconsulting.com.au>"> <span class="fn">Philip Derrin</span></a>
</span></b>
<pre>I encountered this too, on i965.
It happens because intel_viewport calls _mesa_is_winsys_fbo to determine
whether the draw buffer has an associated DRI2 drawable, but that predicate
returns true for the global IncompleteFramebuffer which is used by surfaceless
contexts, which obviously has no DRI2 drawable. A null pointer check in
intel_viewport fixes it.
The i915 driver looks like it has the same problem (in
intel_invalidate_viewport), though I haven't tested it.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>