problem with eglMakeCurrent, color artifacts on display

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

problem with eglMakeCurrent, color artifacts on display

ソリューションへジャンプ
1,404件の閲覧回数
vyacheslavsorok
Contributor I

Hi guys,

I have some problems with using the eglMakeCurrent.

There is the embeded device which is based on the IMX6x and uses the QNX as OS and OpengGLES2.0&EGL1.4.

I'm trying to use opengl in the multi-thread application, so I have multiple threads that render to the same surface/context.

Each thread at the beginning of its work with EGL context calls the eglMakeCurrent function and passing the eglContext, eglSurface (for both read/write)

and at the end of work it calls the eglMakeCurrent( mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT ).

In this way I have a context that is active  only for one thread.

But as a result I have a lot of color artifacts on the screen.

For experiment I've created a single-threaded application and simple make few context switches:

eglMakeCurrent( mEglDisplay, mEglSurface, mEglSurface, mEglContext )

--

some opengl operations

--

eglMakeCurrent( mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT )

eglMakeCurrent( mEglDisplay, mEglSurface, mEglSurface, mEglContext )

--

some opengl operations

--

eglMakeCurrent( mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT )

As result I got similar problem - a lot of color artifacts on the screen.

Has anyone faced a similar problem? Can somebody help me?

Thanks in advance, Vyacheslav.

ラベル(2)
0 件の賞賛
返信
1 解決策
1,184件の閲覧回数
andre_silva
NXP Employee
NXP Employee

have you tried the same using Linux Operating system ? I never saw an issue like that, also, I didn´t touch qnx yet.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,185件の閲覧回数
andre_silva
NXP Employee
NXP Employee

have you tried the same using Linux Operating system ? I never saw an issue like that, also, I didn´t touch qnx yet.

0 件の賞賛
返信