<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - wglCreatePbufferARB handle attrib error"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92020#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - wglCreatePbufferARB handle attrib error"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92020">bug 92020</a>
from <span class="vcard"><a class="email" href="mailto:332447549@qq.com" title="zeif <332447549@qq.com>"> <span class="fn">zeif</span></a>
</span></b>
<pre>(In reply to Emil Velikov from <a href="show_bug.cgi?id=92020#c1">comment #1</a>)
<span class="quote">> Hi zeif,
>
> This looks like a user error, rather than a mesa bug.
>
> Namely, I suspect that you're feeding attrib as defined by some extension,
> without first checking if the latter is available. Is that the case ?
>
> For example if you want to use WGL_DEPTH_TEXTURE_FORMAT_NV, you should first
> check for the WGL_NV_render_depth_texture extension.</span >
/////////////////////////////////////////////////////////////////
Thx :
I was a rookie at opengl..
But , Android source code do the same things as me.
So, I push mesa to Emulator's folder.
Android Emulator is not work..
/////////////////////////////////////////////////////////////////
// Android source code :
//<a href="http://androidxref.com/4.3_r2.1/xref/sdk/emulator/opengl/host/libs/Translator/EGL/EglWindowsApi.cpp#498">http://androidxref.com/4.3_r2.1/xref/sdk/emulator/opengl/host/libs/Translator/EGL/EglWindowsApi.cpp#498</a>
int pbAttribs[] = {
WGL_TEXTURE_TARGET_ARB ,wglTexTarget,
WGL_TEXTURE_FORMAT_ARB ,wglTexFormat,
0
};
if(!s_wglExtProcs->wglCreatePbufferARB) return NULL;
EGLNativePbufferType pb =
s_wglExtProcs->wglCreatePbufferARB(dpy,cfg->nativeId(),width,height,pbAttribs);
if(!pb) {
DWORD err = GetLastError();
return NULL;
}
//////////////////////////////////////////////////////////</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>