summarylogtreecommitdiffstats
path: root/globjects.patch
blob: 9878d9c6a3cf1e656cff6e48330c889bad744af9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff --color --unified --recursive --text globjects.orig/source/globjects/source/implementations/BufferImplementation_DirectStateAccessARB.cpp globjects.new/source/globjects/source/implementations/BufferImplementation_DirectStateAccessARB.cpp
--- globjects.orig/source/globjects/source/implementations/BufferImplementation_DirectStateAccessARB.cpp	2021-08-26 01:43:35.844032899 +0200
+++ globjects.new/source/globjects/source/implementations/BufferImplementation_DirectStateAccessARB.cpp	2021-08-26 01:45:32.803402681 +0200
@@ -36,7 +36,7 @@
 
 void * BufferImplementation_DirectStateAccessARB::mapRange(const Buffer * buffer, GLintptr offset, GLsizeiptr length, MapBufferAccessMask access) const
 {
-    return glMapNamedBufferRange(buffer->id(), offset, static_cast<GLsizei>(length), access);
+    return glMapNamedBufferRange(buffer->id(), offset, static_cast<GLsizei>(length), static_cast<BufferAccessMask>(access));
 }
 
 bool BufferImplementation_DirectStateAccessARB::unmap(const Buffer * buffer) const
diff --color --unified --recursive --text globjects.orig/source/globjects/source/Sync.cpp globjects.new/source/globjects/source/Sync.cpp
--- globjects.orig/source/globjects/source/Sync.cpp	2021-08-26 01:43:35.837366269 +0200
+++ globjects.new/source/globjects/source/Sync.cpp	2021-08-26 01:47:11.639537596 +0200
@@ -51,7 +51,7 @@
 
 GLsync Sync::fenceSync(const GLenum condition, const UnusedMask flags)
 {
-    return glFenceSync(condition, static_cast<gl::GLbitfield>(flags));
+    return glFenceSync(condition, flags);
 }
 
 GLsync Sync::sync() const
@@ -71,7 +71,7 @@
 
 void Sync::wait(const UnusedMask flags, const GLuint64 timeout)
 {
-    glWaitSync(m_sync, static_cast<gl::GLbitfield>(flags), timeout);
+   glWaitSync(m_sync, flags, timeout); 
 }
 
 void Sync::get(const GLenum pname, const GLsizei bufsize, GLsizei * length, GLint * values)