<?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>867</bug_id>
          
          <creation_ts>2013-10-23 17:53:16 +0200</creation_ts>
          <short_desc>OSX: Recognize OpenGL Core Profile &gt; 3.0 (OSX 10.9 supports 4.1 core)</short_desc>
          <delta_ts>2014-02-20 01:54:11 +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>macosx</component>
          <version>2</version>
          <rep_platform>All</rep_platform>
          <op_sys>macosx</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>
          
          <blocked>864</blocked>
    
    <blocked>930</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>johan</cc>
    
    <cc>jrm</cc>
    
    <cc>ralph</cc>
          
          <cf_type>---</cf_type>
          <cf_scm_refs>38025a602750161c72a50ad7a25e97fb7a6cb6df
cbc641e89136098e0a9e79afe74b45203f828587
dc2deb071ca192594426791e95804a208e030ce3</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3165</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-10-23 17:53:16 +0200</bug_when>
    <thetext>Commit 34b35c5a0a379a6b4c0b23b9d347a0b1338f0239 allows maximum detected GL profile,
however MacOSXCGLContext.isGLProfileSupported(..) refuses to support GL &gt; 3.

Allow support of OpenGL &gt;= 3.1 including &gt;= 4.0 for OSX.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3168</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-10-23 17:55:56 +0200</bug_when>
    <thetext>*** Bug 864 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3174</commentid>
    <comment_count>2</comment_count>
    <who name="">johan</who>
    <bug_when>2013-10-23 23:21:56 +0200</bug_when>
    <thetext>*** Bug 869 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3178</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-10-24 23:38:05 +0200</bug_when>
    <thetext>
Use new kCGLPFAOpenGLProfile values:
  kCGLOGLPVersion_GL3_Core (== old kCGLOGLPVersion_3_2_Core value)
  kCGLOGLPVersion_GL4_Core

+++

Besides recognizing OSX 10.9 ability to have core &gt;= 4 available,
I experienced a quirk ..

New GLRenderer GL4NeedsGL3Request:
  OSX &gt;= 10.9.0 - kCGLOGLPVersion_GL4_Core may not produce hw-accel context

here we have to use kCGLOGLPVersion_GL3_Core,
otherwise we will have APPLE&apos;s software renderer.

I got this one w/ the NV driver, but it may happen w/ other GPU/drivers as well.

+++</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3180</commentid>
    <comment_count>4</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-10-24 23:44:51 +0200</bug_when>
    <thetext>38025a602750161c72a50ad7a25e97fb7a6cb6df: 
  Add GLRendererQuirks: Quirk GL4NeedsGL3Request and &apos;sticky device quirks&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3181</commentid>
    <comment_count>5</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-10-25 01:42:31 +0200</bug_when>
    <thetext>cbc641e89136098e0a9e79afe74b45203f828587
  Allow core &gt;=4 if isMavericksOrLater; 

  Use [kCGLOGLPVersion_GL4_Core, kCGLOGLPVersion_GL3_Core] 
  for major==4 depending on sticky GLRendererQuirks.GL4NeedsGL3Request</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3182</commentid>
    <comment_count>6</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-10-25 01:43:31 +0200</bug_when>
    <thetext>Trigger GLRendererQuirks.GL4NeedsGL3Request and make it sticky; Only alias profiles if HW-Accelerated!

    Only alias profiles if HW-Accelerated!
    GLContextImpl.mapGLVersions(..) shall not map a higher profile to a lower if it is a software renderer.
    
    +++
    
    GLContextImpl.mapGLVersions(..) attempts to trigger GLRendererQuirks.GL4NeedsGL3Request if OSX 10.9
    by creating a GL3 core context first.
    
    +++
    
    GLContextImpl.setGLFunctionAvailability():
      - On OSX 10.9: Detect GLRendererQuirks.GL4NeedsGL3Request and make it sticky (per device)
        while &apos;withinGLVersionsMapping&apos;
    
      - Merge sticky quirks w/ local quirks
    
    +++
    
    TestGearsES2NEWT: Add cmdline &apos;-gl2&apos; to force GL2 profile.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3749</commentid>
    <comment_count>7</comment_count>
    <who name="Jim Miller">jrm</who>
    <bug_when>2014-02-20 00:51:03 +0100</bug_when>
    <thetext>I downloaded the 2.1.4 jogl jar files. When running a sample program using them on linux, it reports OpenGL 4.3 as I would expect, but when running the exact program on my 10.9.1 Mac, it still reports OpenGL 2.1.  Is there something special that needs to be done to get OpenGL 4 (or even OpenGL 3.3) on Mac mavericks?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3750</commentid>
    <comment_count>8</comment_count>
    <who name="Jim Miller">jrm</who>
    <bug_when>2014-02-20 01:54:11 +0100</bug_when>
    <thetext>Sorry - Just a silly mistake. I&apos;ve got what I expect on Mac. Sorry for the unnecessary post.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>