<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic problem with eglMakeCurrent, color artifacts on display in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/problem-with-eglMakeCurrent-color-artifacts-on-display/m-p/212832#M13075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some problems with using the eglMakeCurrent.&lt;/P&gt;&lt;P&gt;There is the embeded device which is based on the IMX6x and uses the QNX as OS and OpengGLES2.0&amp;amp;EGL1.4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use opengl in the multi-thread application, so I have multiple threads that render to the same surface/context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each thread at the beginning of its work with EGL context calls the eglMakeCurrent function and passing the eglContext, eglSurface (for both read/write) &lt;/P&gt;&lt;P&gt;and at the end of work it calls the eglMakeCurrent( mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way I have a context that is active&amp;nbsp; only for one thread.&lt;/P&gt;&lt;P&gt;But as a result I have a lot of color artifacts on the screen.&lt;/P&gt;&lt;P&gt;For experiment I've created a single-threaded application and simple make few context switches:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eglMakeCurrent( mEglDisplay, mEglSurface, mEglSurface, mEglContext )&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;some opengl operations&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;eglMakeCurrent( mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT )&lt;/P&gt;&lt;P&gt;eglMakeCurrent( mEglDisplay, mEglSurface, mEglSurface, mEglContext )&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;some opengl operations&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;eglMakeCurrent( mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As result I got similar problem - a lot of color artifacts on the screen.&lt;/P&gt;&lt;P&gt;Has anyone faced a similar problem? &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Can somebody help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thanks in advance, &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Vyacheslav.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2012 10:59:58 GMT</pubDate>
    <dc:creator>vyacheslavsorok</dc:creator>
    <dc:date>2012-12-19T10:59:58Z</dc:date>
    <item>
      <title>problem with eglMakeCurrent, color artifacts on display</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/problem-with-eglMakeCurrent-color-artifacts-on-display/m-p/212832#M13075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some problems with using the eglMakeCurrent.&lt;/P&gt;&lt;P&gt;There is the embeded device which is based on the IMX6x and uses the QNX as OS and OpengGLES2.0&amp;amp;EGL1.4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use opengl in the multi-thread application, so I have multiple threads that render to the same surface/context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each thread at the beginning of its work with EGL context calls the eglMakeCurrent function and passing the eglContext, eglSurface (for both read/write) &lt;/P&gt;&lt;P&gt;and at the end of work it calls the eglMakeCurrent( mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way I have a context that is active&amp;nbsp; only for one thread.&lt;/P&gt;&lt;P&gt;But as a result I have a lot of color artifacts on the screen.&lt;/P&gt;&lt;P&gt;For experiment I've created a single-threaded application and simple make few context switches:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eglMakeCurrent( mEglDisplay, mEglSurface, mEglSurface, mEglContext )&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;some opengl operations&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;eglMakeCurrent( mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT )&lt;/P&gt;&lt;P&gt;eglMakeCurrent( mEglDisplay, mEglSurface, mEglSurface, mEglContext )&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;some opengl operations&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;eglMakeCurrent( mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As result I got similar problem - a lot of color artifacts on the screen.&lt;/P&gt;&lt;P&gt;Has anyone faced a similar problem? &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Can somebody help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thanks in advance, &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Vyacheslav.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 10:59:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/problem-with-eglMakeCurrent-color-artifacts-on-display/m-p/212832#M13075</guid>
      <dc:creator>vyacheslavsorok</dc:creator>
      <dc:date>2012-12-19T10:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: problem with eglMakeCurrent, color artifacts on display</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/problem-with-eglMakeCurrent-color-artifacts-on-display/m-p/212833#M13076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;have you tried the same using Linux Operating system ? I never saw an issue like that, also, I didn´t touch qnx yet.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 17:11:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/problem-with-eglMakeCurrent-color-artifacts-on-display/m-p/212833#M13076</guid>
      <dc:creator>andre_silva</dc:creator>
      <dc:date>2013-01-18T17:11:47Z</dc:date>
    </item>
  </channel>
</rss>

