-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch from GLEW to epoxy #29
Conversation
hw/xbox/nv2a/gl/gloffscreen_common.c
Outdated
if (strcmp(ext, ext_name) == 0) return true; | ||
} | ||
return false; | ||
return epoxy_has_gl_extension(ext_name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation is bad
hw/xbox/nv2a/nv2a_debug.c
Outdated
|
||
void gl_debug_frame_terminator(void) | ||
{ | ||
if (has_GL_GREMEDY_frame_terminator) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check is negated
hw/xbox/nv2a/nv2a_debug.c
Outdated
n = vsnprintf(buffer, sizeof(buffer), fmt, ap); | ||
assert(n <= sizeof(buffer)); | ||
va_end(ap); | ||
|
||
/* Check for errors before entering group */ | ||
assert(glGetError() == GL_NO_ERROR); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be part of the debug group already?
It works on my end, obsoleting xqemu/xqemu#13 and fixing xqemu/xqemu#53 and xqemu/xqemu#20 I tested it on this system:
|
Please add "-lepoxy" on line ./configure line 2951 such that:
|
|
Appears to be crashing in Windows for unknown reasons. Needs further investigation before merging. |
Moved to JayFoxRox/xqemu#1 to kickoff another CI. |
This implements epoxy as backend for glo (which used to use GLEW).
As epoxy does not do context management, I decided to stick to glo (QEMU uses EGL exclusively)
I did not integrate epoxy directly in our codebase yet due to unfamiliarity with their API, and because I didn't want to delay fixing master.
The display flickers with Gtk, but works fine with SDL.
As I can't run XQEMU without this patch, I don't know if this change is responsible for that problem or not.
As I'm almost exclusively Linux (GLX) user. Therefore I depend on test results by macOS (CGL) and Windows (WGL) users.
Please confirm that XQEMU compiles and runs fine on those platforms with these changes.
TODO: