<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>925</bug_id>
          
          <creation_ts>2013-12-13 22:23:34 +0100</creation_ts>
          <short_desc>Accept an ES3 Context, if reported via GL-Version-String w/o EGL_OPENGL_ES3_BIT_KHR</short_desc>
          <delta_ts>2013-12-21 21:39:21 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>core</component>
          <version>2</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>gouessej</cc>
    
    <cc>julien.carlos</cc>
    
    <cc>org.jogamp</cc>
    
    <cc>rami.santina</cc>
    
    <cc>sgothel</cc>
    
    <cc>xerxes</cc>
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs>bbb7f94c015fbfefdff672eb2d261fbd230c4e81
972feb4be95d1c16c71b84694729952e91dda668
ddd5eb35b83ca85dbf43039e8199a7ecf011cdd8</cf_scm_refs>
          <cf_workaround>TRUE</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3470</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-12-13 22:23:34 +0100</bug_when>
    <thetext>Reflect ES3 Compatibility with ES2.

F1 p322 of the OpenGL ES 3.0.2 Spec claims backward compatibility with ES2,
hence return true for &apos;glES3.isGLES2()&apos; and allow &apos;glES3.getGLES2()&apos;.

+++

Accept an ES3 context as such if reported via GL-Version-String.
w/o EGL_OPENGL_ES3_BIT_KHR.

Due to the state of &apos;implementations not 100% compliant&apos;
accepts a GL-ES context to assume ES3 identity 
if it&apos;s GL-Version-String reports ES3.

+++</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3490</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-12-19 07:44:37 +0100</bug_when>
    <thetext>Dropped &apos; ES3 Compatibility w/ ES2&apos; to remove side-effects and simplify bug-fix,
i.e.:
  false == es3.isGLES2()
  false == es2.isGLES3()

however common profiles match, i.e.:
  true == es3.isGL2ES2()
  true == es2.isGL2ES2()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3501</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-12-21 14:43:29 +0100</bug_when>
    <thetext>bbb7f94c015fbfefdff672eb2d261fbd230c4e81
  Use proper common profile and test compatibility for GLContextImpl&apos;s default VAO.

972feb4be95d1c16c71b84694729952e91dda668
      Add Quirk &apos;GLES3ViaEGLES2Config&apos;: ES3 Context is used via EGL_OPENGL_ES2_BIT 
      and &apos;version 2&apos; for create context attributes.
    
    - GLContextImpl.setGLFunctionAvailability(..)&apos;s ES version validation
      only fails if requested major version == 1 and doesn&apos;t match.
      Hence requesting major==2 and having version 3 is tolerated.
    
    - GLContextImpl.setGLFunctionAvailability(..)&apos;s Quirks:
        requested-major &lt; has-major -&gt; Adding GLES3ViaEGLES2Config
    
    - EGLDrawableFactory.mapAvailableEGLESConfig(..):
      Reflects has-major version, i.e. GLES3ViaEGLES2Config situation where
      an ES2 request leads to an ES3 version.
    
    Note: All workarounds can be found via lookup of GLES3ViaEGLES2Config (as usual when using quirks).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3503</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-12-21 15:18:46 +0100</bug_when>
    <thetext>(In reply to comment #1)
&gt; Dropped &apos; ES3 Compatibility w/ ES2&apos; to remove side-effects and simplify
&gt; bug-fix,
&gt; i.e.:
&gt;   false == es3.isGLES2()
&gt;   false == es2.isGLES3()
&gt; 
&gt; however common profiles match, i.e.:
&gt;   true == es3.isGL2ES2()
&gt;   true == es2.isGL2ES2()

Bug 929 will take care of &apos;Reflect ES3 Compatibility with ES2&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3505</commentid>
    <comment_count>4</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-12-21 21:39:21 +0100</bug_when>
    <thetext>ddd5eb35b83ca85dbf43039e8199a7ecf011cdd8
    Refine GLContextImpl.setGLFunctionAvailability(..)&apos;s ES version validation:
    +            //     - fail if ES major-version mismatch:
    +            //       - request 1, &gt;= 3 must be equal
    +            //       - request 2 must be [2..3]
    
    i.e. the following is accepted, otherwise fails:
      request   has
      1         1
      2         2,3
      3         3
      4         4</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>