<?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>652</bug_id>
          
          <creation_ts>2012-12-13 10:27:53 +0100</creation_ts>
          <short_desc>DebugGL of a GL2ES2 context doesn&apos;t return true for isGLES</short_desc>
          <delta_ts>2012-12-19 22:18:50 +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>embedded</component>
          <version>2</version>
          <rep_platform>embedded_arm</rep_platform>
          <op_sys>other</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>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Brice Figureau">brice.figureau</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs>jogl 1062e8ebfd6d2643bba9a68bbbc78bb44b3ede6a</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2040</commentid>
    <comment_count>0</comment_count>
    <who name="Brice Figureau">brice.figureau</who>
    <bug_when>2012-12-13 10:27:53 +0100</bug_when>
    <thetext>The following code:

GL _gl = drawable.getGL();
gl = _gl.getGL2ES2();

log.debug(&quot;Before adding a debug GL&quot;);
log.debug(&quot;GL class: &quot; + gl.getClass().getName());
log.debug(&quot;isGLES: &quot; + (gl.isGLES() ? &quot;true&quot; : &quot;false&quot;));
log.debug(&quot;isGLES1: &quot; + (gl.isGLES1() ? &quot;true&quot; : &quot;false&quot;));
log.debug(&quot;isGLES2: &quot; + (gl.isGLES2() ? &quot;true&quot; : &quot;false&quot;));
log.debug(&quot;isGL2ES1: &quot; + (gl.isGL2ES1() ? &quot;true&quot; : &quot;false&quot;));
log.debug(&quot;isGL2ES2: &quot; + (gl.isGL2ES2() ? &quot;true&quot; : &quot;false&quot;));

_gl =_gl.getContext().setGL(GLPipelineFactory.create(&quot;javax.media.opengl.Debug&quot;, GL2ES2.class, _gl, null));
gl = _gl.getGL2ES2();
		
log.debug(&quot;After adding a debug GL&quot;);
log.debug(&quot;GL class: &quot; + gl.getClass().getName());
log.debug(&quot;isGLES: &quot; + (gl.isGLES() ? &quot;true&quot; : &quot;false&quot;));
log.debug(&quot;isGLES1: &quot; + (gl.isGLES1() ? &quot;true&quot; : &quot;false&quot;));
log.debug(&quot;isGLES2: &quot; + (gl.isGLES2() ? &quot;true&quot; : &quot;false&quot;));
log.debug(&quot;isGL2ES1: &quot; + (gl.isGL2ES1() ? &quot;true&quot; : &quot;false&quot;));
log.debug(&quot;isGL2ES2: &quot; + (gl.isGL2ES2() ? &quot;true&quot; : &quot;false&quot;));

When run on an Android 4.0.3 (currently a Kindle HD) returns the following:
Before adding a debug GL
GL class: jogamp.opengl.es2.GLES2Impl
isGLES: true
isGLES1: false
isGLES2: true
isGL2ES1: false
isGL2ES2: true

After adding a debug GL
GL class: javax.media.opengl.DebugGL2ES2
isGLES: false
isGLES1: false
isGLES2: false
isGL2ES1: false
isGL2ES2: true

Obviously, the second case should exactly match the first output, but it isn&apos;t.

Note that if I use the following (ie debugging a GLES2 profile instead of an GL2ES2 profile):

_gl =_gl.getContext().setGL(GLPipelineFactory.create(&quot;javax.media.opengl.Debug&quot;, GLES2.class, _gl, null));
gl = _gl.getGL2ES2();


Then it correctly returns true for both isGLES2, isGLES and isGL2ES2 :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2043</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2012-12-19 22:18:50 +0100</bug_when>
    <thetext>&lt;http://jogamp.org/git/?p=jogl.git;a=commit;h=1062e8ebfd6d2643bba9a68bbbc78bb44b3ede6a&gt;

DEBUG/TRACE: Removed Debug/Trace pipelines of common profiles (won&apos;t work anyways)
  - [Debug|Trace]GL2ES1
  - [Debug|Trace]GL2ES2
  - [Debug|Trace]GL2GL3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>