<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [gl, glesv2] Cannot build with --gl and --glesv2"
href="https://bugs.freedesktop.org/show_bug.cgi?id=57379#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [gl, glesv2] Cannot build with --gl and --glesv2"
href="https://bugs.freedesktop.org/show_bug.cgi?id=57379">bug 57379</a>
from <span class="vcard"><a class="email" href="mailto:ojab@ojab.ru" title="ojab <ojab@ojab.ru>"> <span class="fn">ojab</span></a>
</span></b>
<pre>Created <span class=""><a href="attachment.cgi?id=77515" name="attach_77515" title="patch">attachment 77515</a> <a href="attachment.cgi?id=77515&action=edit" title="patch">[details]</a></span>
patch
Cannot bisect, but looks like this issue was fixed/papered over by
<a href="http://cgit.freedesktop.org/cairo/commit/?id=465319ce828f922edce46b6e7628da543b20d5e4">http://cgit.freedesktop.org/cairo/commit/?id=465319ce828f922edce46b6e7628da543b20d5e4</a>
and
<a href="http://cgit.freedesktop.org/cairo/commit/?id=188c34b40d6f08851b4076ad11aefe69d4a78a25">http://cgit.freedesktop.org/cairo/commit/?id=188c34b40d6f08851b4076ad11aefe69d4a78a25</a>
reverted that.
Attached patch fixes the issue (but there is also makefile/libtool one:
gl-related object files are pulled twice during linking).
But I don't understand why not rewrite _get_depth_stencil_format to just
static GLenum
_get_depth_stencil_format (cairo_gl_context_t *ctx)
{
/* This is necessary to properly handle the situation where both
OpenGL and OpenGLES are active and returning a sane default. */
#if CAIRO_HAS_GL_SURFACE
return GL_DEPTH_STENCIL;
#endif
#if CAIRO_HAS_GLESV2_SURFACE
return GL_DEPTH24_STENCIL8;
#endif
}</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>