[Mesa-dev] [Bug 92020] wglCreatePbufferARB handle attrib error
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Sep 16 05:39:59 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=92020
--- Comment #2 from zeif <332447549 at qq.com> ---
(In reply to Emil Velikov from comment #1)
> 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.
/////////////////////////////////////////////////////////////////
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 :
//http://androidxref.com/4.3_r2.1/xref/sdk/emulator/opengl/host/libs/Translator/EGL/EglWindowsApi.cpp#498
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;
}
//////////////////////////////////////////////////////////
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150916/a65ff6d9/attachment.html>
More information about the mesa-dev
mailing list