Don't write past the end of a GPU mem buffer.
[ipdf/code.git] / src / view.h
index ec5e97f..e4254de 100644 (file)
@@ -48,7 +48,7 @@ namespace IPDF
                        {
                                float x0, y0;
                                float x1, y1;
-                       };
+                       } __attribute__((packed));
 
                        void PrepareRender(); // call when m_render_dirty is true
                        void UpdateObjBoundsVBO(unsigned first_obj, unsigned last_obj); // call when m_buffer_dirty is true

UCC git Repository :: git.ucc.asn.au