mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 15:33:34 +00:00
yes
This commit is contained in:
@@ -7,19 +7,35 @@
|
||||
#include "../../PulseInternal.h"
|
||||
#include "OpenGL.h"
|
||||
#include "OpenGLFence.h"
|
||||
#include "OpenGLDevice.h"
|
||||
|
||||
PulseFence OpenGLCreateFence(PulseDevice device)
|
||||
{
|
||||
PULSE_UNUSED(device);
|
||||
PulseFence fence = (PulseFence)calloc(1, sizeof(PulseFence));
|
||||
PULSE_CHECK_ALLOCATION_RETVAL(fence, PULSE_NULL_HANDLE);
|
||||
return fence;
|
||||
}
|
||||
|
||||
void OpenGLDestroyFence(PulseDevice device, PulseFence fence)
|
||||
{
|
||||
PULSE_UNUSED(device);
|
||||
free(fence);
|
||||
}
|
||||
|
||||
bool OpenGLIsFenceReady(PulseDevice device, PulseFence fence)
|
||||
{
|
||||
PULSE_UNUSED(device);
|
||||
PULSE_UNUSED(fence);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OpenGLWaitForFences(PulseDevice device, const PulseFence* fences, uint32_t fences_count, bool wait_for_all)
|
||||
{
|
||||
PULSE_UNUSED(fences);
|
||||
PULSE_UNUSED(fences_count);
|
||||
PULSE_UNUSED(wait_for_all);
|
||||
OpenGLDevice* opengl_device = OPENGL_RETRIEVE_DRIVER_DATA_AS(device, OpenGLDevice*);
|
||||
opengl_device->glFinish(device);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user