From d0a0b3738fe16858024addcefa8fc917a5aa6fe0 Mon Sep 17 00:00:00 2001 From: leso-kn Date: Sun, 19 May 2024 20:46:53 +0200 Subject: [PATCH] testing/compiz: fix crash in vertexbuffer * affected effect 'wobbly' when dragging a window outside the left or top screen boundaries --- testing/compiz/APKBUILD | 4 ++-- testing/compiz/opengl.patch | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/testing/compiz/APKBUILD b/testing/compiz/APKBUILD index 6dda64466c0..fa458370a3f 100644 --- a/testing/compiz/APKBUILD +++ b/testing/compiz/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: leso-kn pkgname=compiz pkgver=0.9.14.2 -pkgrel=4 +pkgrel=5 pkgdesc="OpenGL window and compositing manager" url="http://www.compiz.org/" arch="all" @@ -101,7 +101,7 @@ sha512sums=" 669c32ad7e4428dbbc20bcc8f99764f2c0a28b0641b094fa89abcdf760df82d3fddaf1ac6b0596d0a80c1fe81e641c0ad64b550b93a6dfdf7f4759d687840a8f boost.patch 2bbc6456deb85474416049eed194d5df7ec6c445f61c8f691f05f86cfee761cb634011fa658f2cd04c6740fea00400d536437bc7f210730f6651c490e96cb6c9 gtest.patch 1b3ada1f7fe818cadff8729a3778f161776be4641e1bf36a2ab185921fbcff2e64b9a1d2576441913c7561e1d327612ebdd4a20fde9941a57b3f32e7084f444c libgen.patch -aa6b4ba66b512d8cb09b17cd7e30a0ac2ed64ed11ef17613587c1b16c8c6146b2b526aba580b04db03f5b653c4c08ba0e7c57f2edd732a535db5da9f61c7b8f5 opengl.patch +525cec925b490d567e2a29ef6aef0da6344f8b68a682a82d2dff9087c53ece5a901fe0b3fa87120babdbba368b7b46208f872cbea02b6fea93e55700604b1ff7 opengl.patch 9dd0d4c2361fd56645d2f7b634dee32f1d44a67d36b53e550108acc78a8400bfd3c57132a8a029e9884b9f05cdd3a7533c65355d0a3dd80564544931eaced258 protobuf.patch 2258ab2cf9cea0f3b16c0054b5471e89c11eb75b2dc337e4a2ad63d443435668f383e89e08903085ffc3de78816c41e1d3104e987d792fdf801be85e779faac3 startup-notification-long.patch " diff --git a/testing/compiz/opengl.patch b/testing/compiz/opengl.patch index c8a147da61c..c55fd5098c5 100644 --- a/testing/compiz/opengl.patch +++ b/testing/compiz/opengl.patch @@ -58,3 +58,16 @@ index fcf19ca..39bf966 100644 GL::bindTexImage = (GL::GLXBindTexImageProc) getProcAddress ("glXBindTexImageEXT"); GL::releaseTexImage = (GL::GLXReleaseTexImageProc) +diff --git a/plugins/opengl/src/vertexbuffer.cpp b/plugins/opengl/src/vertexbuffer.cpp +index b102016..4e314c2 100644 +--- a/plugins/opengl/src/vertexbuffer.cpp ++++ b/plugins/opengl/src/vertexbuffer.cpp +@@ -164,7 +164,7 @@ void GLVertexBuffer::addVertices (GLuint nVertices, const GLfloat *vertices) + + GLfloat *GLVertexBuffer::getVertices() const + { +- return &priv->vertexData[0]; ++ return priv->vertexData.data(); + } + + int GLVertexBuffer::getVertexStride() const