mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Remove obsolete code and hopefully fix VS2013 build
--HG-- branch : minor
This commit is contained in:
@@ -38,6 +38,7 @@ class FenceSync
|
||||
{
|
||||
public:
|
||||
|
||||
FenceSync() {}
|
||||
~FenceSync();
|
||||
|
||||
bool fence();
|
||||
@@ -50,47 +51,6 @@ private:
|
||||
|
||||
}; // FenceSync
|
||||
|
||||
class BufferSync
|
||||
{
|
||||
public:
|
||||
|
||||
~BufferSync();
|
||||
|
||||
void lock(size_t start, size_t length);
|
||||
void wait(size_t start, size_t length);
|
||||
void cleanup();
|
||||
|
||||
private:
|
||||
|
||||
struct Range
|
||||
{
|
||||
size_t offset;
|
||||
size_t length;
|
||||
|
||||
bool overlaps(const Range &other) const
|
||||
{
|
||||
return offset < (other.offset + other.length)
|
||||
&& other.offset < (offset + length);
|
||||
}
|
||||
};
|
||||
|
||||
struct Lock
|
||||
{
|
||||
Range range;
|
||||
GLsync sync;
|
||||
|
||||
Lock(const Range &range, GLsync sync)
|
||||
: range(range)
|
||||
, sync(sync)
|
||||
{}
|
||||
};
|
||||
|
||||
void syncWait(GLsync sync);
|
||||
|
||||
std::vector<Lock> locks;
|
||||
|
||||
}; // BufferSync
|
||||
|
||||
} // opengl
|
||||
} // graphics
|
||||
} // love
|
||||
|
||||
Reference in New Issue
Block a user