Skip to content

OpenGL Minimum Version Handling #25

Description

@peterdell

Background
I could not get the emulator to work on my T530 Thinkpad. It just stopped with

jac@jac-ThinkPad-W530-2:~/jac/system/X65/Tools/EMU/emu/bin$ ./emu_linux_x64
[sapp][panic][id:36][line:11163]
ABORTING because of [panic]
Aborted (core dumped)

So I went and tried to debug it. My own compiled version resulted in:

sapp][panic][id:36] /home/jac/jac/system/Linux/Programming/Repositories/emu/ext/sokol/sokol_app.h:11163:0:
LINUX_GLX_CREATE_CONTEXT_FAILED: Failed to create GL context via glXCreateContextAttribsARB

ABORTING because of [panic]
Aborted (core dumped)

I could make it work by changing the code in "sokol_main", to use GL 3.0. And it worked all fine.

Here's my request:

  1. Can you add more explicit error handling/messages for such an error?
  2. If there is a minimum version requirement, the code should use the minimum version and not a later one, so it remains compatible with older machines.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions