jjzjj

android - EGL_BAD_MATCH 错误 Android Studio

我刚刚在AndroidStudio2.2中启动了一个新项目。在我添加了几行代码(主要是SQLite)之后,我想编译我的杰作。然后,这发生了:E/EGL_emulation:tid3901:eglSurfaceAttrib(1146):error0x3009(EGL_BAD_MATCH)W/OpenGLRenderer:FailedtosetEGL_SWAP_BEHAVIORonsurface0xacfc9fa0,error=EGL_BAD_MATCHDeviceemulator-5554disconnected,monitoringstopped.Applicationterminat

android - EGL_BAD_MATCH 错误 Android Studio

我刚刚在AndroidStudio2.2中启动了一个新项目。在我添加了几行代码(主要是SQLite)之后,我想编译我的杰作。然后,这发生了:E/EGL_emulation:tid3901:eglSurfaceAttrib(1146):error0x3009(EGL_BAD_MATCH)W/OpenGLRenderer:FailedtosetEGL_SWAP_BEHAVIORonsurface0xacfc9fa0,error=EGL_BAD_MATCHDeviceemulator-5554disconnected,monitoringstopped.Applicationterminat

android - java.lang.RuntimeException : eglSwapBuffers failed: EGL_SUCCESS

我在GooglePlay商店中有一个OpenGL应用程序,我每天都遇到异常:java.lang.RuntimeException:eglSwapBuffersfailed:EGL_SUCCESSatandroid.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1085)atandroid.opengl.GLSurfaceView$EglHelper.swap(GLSurfaceView.java:1043)atandroid.opengl.GLSurfaceView$GLThread.guarde

android - java.lang.RuntimeException : eglSwapBuffers failed: EGL_SUCCESS

我在GooglePlay商店中有一个OpenGL应用程序,我每天都遇到异常:java.lang.RuntimeException:eglSwapBuffersfailed:EGL_SUCCESSatandroid.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1085)atandroid.opengl.GLSurfaceView$EglHelper.swap(GLSurfaceView.java:1043)atandroid.opengl.GLSurfaceView$GLThread.guarde

android - 如何在 Android Ice Cream Sandwich 中用 TextureView 替换 GLSurfaceView?

纹理Viewdocumentation声明它可用于渲染OpenGL内容。在blogpost在宣布TextureView时,它声明:ATextureViewcanjustaseasilybeusedtoembedanOpenGLsceneinyourapplication.AsofAndroid4.0,eglCreateWindowSurface()canbeusedtorenderintoaSurfaceTextureobject.这似乎意味着要使用TextureView而不是GLSurfaceView,必须自己完成所有EGL设置并管理EGLContext和线程(因为GLSurface

android - 如何在 Android Ice Cream Sandwich 中用 TextureView 替换 GLSurfaceView?

纹理Viewdocumentation声明它可用于渲染OpenGL内容。在blogpost在宣布TextureView时,它声明:ATextureViewcanjustaseasilybeusedtoembedanOpenGLsceneinyourapplication.AsofAndroid4.0,eglCreateWindowSurface()canbeusedtorenderintoaSurfaceTextureobject.这似乎意味着要使用TextureView而不是GLSurfaceView,必须自己完成所有EGL设置并管理EGLContext和线程(因为GLSurface

android - 为什么 eglMakeCurrent() 因 EGL_BAD_MATCH 而失败?

我正在使用opengl/egl为Android开发。我的应用需要第二个上下文来从第二个线程加载纹理。我的代码在android2.3上运行良好,但是当我在4.0.3android设备或模拟器上尝试该代码时,eglMakeCurrent()失败并显示EGL_BAD_MATCH。第二个上下文的初始化和它的像素缓冲区也都工作正常,所以我不确定从哪里开始寻找这个错误。这是初始化代码:ANativeWindow*window=(ANativeWindow*)displaySurface;EGLintdummy,format;display=eglGetDisplay(EGL_DEFAULT_DIS

android - 为什么 eglMakeCurrent() 因 EGL_BAD_MATCH 而失败?

我正在使用opengl/egl为Android开发。我的应用需要第二个上下文来从第二个线程加载纹理。我的代码在android2.3上运行良好,但是当我在4.0.3android设备或模拟器上尝试该代码时,eglMakeCurrent()失败并显示EGL_BAD_MATCH。第二个上下文的初始化和它的像素缓冲区也都工作正常,所以我不确定从哪里开始寻找这个错误。这是初始化代码:ANativeWindow*window=(ANativeWindow*)displaySurface;EGLintdummy,format;display=eglGetDisplay(EGL_DEFAULT_DIS

c++ - X11 和 nVidia 驱动程序的奇怪 EGL 行为

我现在有一个奇怪的问题,我有这个使用GTK2、OpenGL和EGL的示例应用程序。我描述的奇怪行为只发生在带有官方nVidia驱动程序的Linux上的nVidiaGPU上。在程序中你看到一条注释,如果你在代码的这个点上不使用glFlush或glGetError,代码将不会绘制三角形,它只会显示红色(清晰的颜色)。如果您调用glGetError或glFlush,它会起作用。有人可以向我解释为什么会这样吗?这是代码:#include#include#include#include#includestaticEGLDisplayegl_display;staticEGLSurfaceegl_

Android 模拟器和 OpenGL ES3 : EGL_BAD_CONFIG

我正在运行AndroidVirtualDevice在我的Ubuntu主机上。它使用的是CPU/ABIIntelAtom(x86),而我使用的是主机GPU。模拟器正在使用Kernel-basedVirtualMachine.只要我使用OpenGLES2上下文,它就可以很好地工作。但是,如果我的应用尝试创建OpenGLES3上下文,则使用...constEGLintcontextAttribs[]={EGL_CONTEXT_CLIENT_VERSION,3,EGL_NONE};context=eglCreateContext(display,config,NULL,contextAttri