jMonkeyEngine / jMonkeyEngine/jmonkeyengine

AWTPanels forcing OpenGL 2.0 (Compat Profile)

Open
#1,336 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.3k
Forks
1.2k
Avg merge
4d 7h
Merged PRs (30d)
14

Description

Background: On Mac OS X everything runs in 2.1 mode unless it requests the Core Profile, so I added a "force OpenGL 3.2 core profile on Mac OS X" for the SDK. Another reason is that the PBR fixes aren't in 3.3.0-stable, effectively breaking PBR on Mac OS X' 3.3.0 SDK.

https://github.com/jMonkeyEngine/jmonkeyengine/blob/3385cdaa3f9a3ba9d9434943bb443d8c36d7e457/jme3-desktop/src/main/java/com/jme3/system/awt/AwtPanelsContext.java#L233

Why is this here and shouldn't we remove it? I guess it stems back from a time where OpenGL 2 was new and 1 was the default?

@normen any idea?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading jme3-desktop/src/main/java/com/jme3/system/awt/AwtPanelsContext.java around line 233 and trace how the AWT panels context selects an OpenGL profile on Mac OS X. Reproduce the reported profile and PBR behavior if possible, then verify the chosen behavior against the SDK's compatibility requirements. Done means the issue's profile-forcing rationale is resolved and the relevant Mac OS X behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
computer-graphics, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.