On linux_platform_destroy we close all the handles for the different
libgl* providers, yet we do not free the memory for the base struct
linux_platform, causing a memory leak.
In reality the memory will never be freed ('still reachable' by valgrind)
as we do not have a API to call
The function return type is bool not *.
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
src/waffle/api/waffle_window.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/waffle/api/waffle_window.c b/src/waffle/api/waffle_window.c
index 207ef33..81f95f8 100644
---
Will allow us more freedom wrt building/using waffle
on multiple OS's (mostly non-posix).
Note that pthreads_once has been converted to call_once
which can never fail.
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
src/waffle/CMakeLists.txt | 1 +
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
src/waffle/core/wcore_tinfo.c | 10 +-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/waffle/core/wcore_tinfo.c b/src/waffle/core/wcore_tinfo.c
index 7d749b7..9a190f9 100644
--- a/src/waffle/core/wcore_tinfo.c
+++
... in order for us to use the snprintf when building with msvc.
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
src/waffle/core/wcore_error_unittest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/waffle/core/wcore_error_unittest.c
Some of our third_party libraries may be build without it thus we'll fail at
link tim.
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
cmake/Modules/WaffleDefineCompilerFlags.cmake | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cmake/Modules/WaffleDefineCompilerFlags.cmake
According to apple developer page, starting with OS X v10.5 the
pixelformat is reference counted. The object is created at
CGLChoosePixelFormat and should be unrefeferenced via
CGLReleasePixelFormat/CGLDestroyPixelFormat.
The latter two are identical accoring to the documentation.
Signed-off-by:
The variable i is used as and compared vs unsigned int.
Change it's type so silcence the compiler warning.
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
src/utils/wflinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/utils/wflinfo.c b/src/utils/wflinfo.c
Windows uses a different calling convention than linux for their public API
(__stdcall vs __cdelc).
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
examples/gl_basic.c | 20 ++--
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/examples/gl_basic.c
Windows uses a different calling convention than linux for their public API
(__stdcall vs __cdelc).
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
tests/functional/gl_basic_test.c | 30 +++---
1 file changed, 19 insertions(+), 11 deletions(-)
diff --git
... as char buffer[const int] does not work under msvc.
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
src/utils/wflinfo.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/utils/wflinfo.c b/src/utils/wflinfo.c
index a76f9fc..94ecfea 100644
---
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
tests/functional/gl_basic_test.c | 4
1 file changed, 4 insertions(+)
diff --git a/tests/functional/gl_basic_test.c b/tests/functional/gl_basic_test.c
index 035b221..928008b 100644
--- a/tests/functional/gl_basic_test.c
+++
Windows uses a different calling convention than linux for their public API
(__stdcall vs __cdelc). Properly annotate the pointers until waffle becomes
aware how to deal with GL dispatch.
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
examples/simple-x11-egl.c | 12 ++--
1 file
Windows uses a different calling convention than linux for their public API
(__stdcall vs __cdelc).
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
src/utils/wflinfo.c | 16
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/src/utils/wflinfo.c
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
examples/gl_basic.c | 13 +++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/examples/gl_basic.c b/examples/gl_basic.c
index 28af1ca..6a399bd 100644
--- a/examples/gl_basic.c
+++ b/examples/gl_basic.c
@@ -109,7
Used by utils/wflinfo and examples/gl_basic.
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
CMakeLists.txt| 8 +
examples/CMakeLists.txt | 2 +-
src/utils/CMakeLists.txt | 2 +-
third_party/getopt/CMakeLists.txt | 10 +
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
src/utils/wflinfo.c | 14 +++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/src/utils/wflinfo.c b/src/utils/wflinfo.c
index 58028f9..54ff7f6 100644
--- a/src/utils/wflinfo.c
+++ b/src/utils/wflinfo.c
@@ -123,7
On 07/07/14 18:28, Emil Velikov wrote:
Hi all,
After respinning the latest changes (and ripping out WGL as it requires some
api/abi changes) here is a lovely list of fixes that gets us closer to
building
waffle with mingw/msvc.
The first four patches are old (three cgl fixes that Chad
On 07/07/2014 11:34 AM, Emil Velikov wrote:
On 07/07/14 18:28, Emil Velikov wrote:
Hi all,
After respinning the latest changes (and ripping out WGL as it requires some
api/abi changes) here is a lovely list of fixes that gets us closer to building
waffle with mingw/msvc.
The first four
In the subject line: length
On 07/07/2014 11:28 AM, Emil Velikov wrote:
... as char buffer[const int] does not work under msvc.
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
src/utils/wflinfo.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git
On 07/07/2014 11:28 AM, Emil Velikov wrote:
The variable i is used as and compared vs unsigned int.
Change it's type so silcence the compiler warning.
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
src/utils/wflinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
On 07/07/2014 11:28 AM, Emil Velikov wrote:
Some of our third_party libraries may be build without it thus we'll fail at
link tim.
time.
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com
---
cmake/Modules/WaffleDefineCompilerFlags.cmake | 2 ++
1 file changed, 2 insertions(+)
diff
22 matches
Mail list logo