<?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>817</bug_id>
          
          <creation_ts>2013-08-16 02:28:25 +0200</creation_ts>
          <short_desc>GLContextImpl&apos;s getDefaultPixelDataType()/getDefaultPixelDataFormat() returns 0</short_desc>
          <delta_ts>2019-09-05 05:39:36 +0200</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>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>1390</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>petr.skramovsky</cc>
    
    <cc>sgothel</cc>
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs>c19f9916bc59765e5aaf307b8ecd5d25dfcad6b6
bab13046729d8283876e4d2f8855a38ff311d375
65833bbcec423f9741116dc9b785e6954f2fcec7
be0204ffe66bb9cb2918bfb01d0235fcaf0b3920</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2894</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-08-16 02:28:25 +0200</bug_when>
    <thetext>GLContextImpl&apos;s getDefaultPixelDataType()/getDefaultPixelDataFormat() returns 0

Beside other use cases this affects GLPixelAttributes to calculate zero bytesPerPixel,
which in turn causes GLReadBufferUtil to use readPixelSize.

GLPixelAttributes shall throw a GLException if faulty args are being used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2895</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-08-16 03:15:37 +0200</bug_when>
    <thetext>Petrs experienced failing GLContextImpl&apos;s getDefaultPixelDataType()/getDefaultPixelDataFormat() 
on NV GTX295 and driver 314.07 on Windows 8.
The GL query via 
      gl.glGetIntegerv(GL.GL_IMPLEMENTATION_COLOR_READ_FORMAT, glImplColorReadVals, 0);
      gl.glGetIntegerv(GL.GL_IMPLEMENTATION_COLOR_READ_TYPE, glImplColorReadVals, 1);            
seems to be buggy w/ that driver, even though it claims to be an ES2 compatible context.

Both methods shall fall back to default values.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2896</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-08-16 03:45:03 +0200</bug_when>
    <thetext>Fixed as proposed ..

Thx to Petr who discovered the bug and verified the test case and fix!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>