1
0
mirror of synced 2024-11-11 21:47:09 +01:00

make afterburner work

This commit is contained in:
Bobby Dilley 2023-01-02 23:14:20 +00:00
parent be7137cdcb
commit 9a9a714da3

View File

@ -242,3 +242,33 @@ Bool XF86VidModeSwitchToMode(Display *display, int screen, XF86VidModeModeInfo *
{ {
return 0; return 0;
} }
typedef unsigned int uint;
int glXSwapIntervalSGI(int interval) {
return 0;
}
int glXGetVideoSyncSGI(uint *count) {
static unsigned int frameCount = 0;
//TODO: Framecount should depend on current system time
*count = (frameCount++)/2; // NOTE: Keeps the same frame for 2 calls
return 0;
}
int glXGetRefreshRateSGI(unsigned int * rate) { //TODO: need an actual prototype
*rate = 60; //TODO: what does this function return?
return 0;
}
void glGenFencesNV(int n, uint *fences) {
static unsigned int curf = 1;
while(n--) {
*fences++ = curf++;
}
return;
}
void glDeleteFencesNV(int a, const uint *b) {
return;
}