Skip to content

Commit

Permalink
Merge branch 'main' of github.com:/NCCA/NGL
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacey committed Mar 29, 2024
2 parents 2894772 + b2fc242 commit 5093085
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions include/ngl/Vec2.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,9 @@ class NGL_DLLEXPORT Vec2
/// anonymous unions public whereas clang++ complains see this post
/// http://jonmacey.blogspot.com/2011/03/anonymous-union-struct-weirdness.html
public:
#pragma pack(push, 1)

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
#pragma pack(push, 1)
union
{
struct
Expand Down
2 changes: 2 additions & 0 deletions src/SimpleIndexVAO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ void SimpleIndexVAO::setData(const AbstractVAO::VertexData &_data)
if(m_allocated)
{
glDeleteBuffers(1, &m_buffer);
glDeleteBuffers(1, &m_idxBuffer);

}

glGenBuffers(1, &m_buffer);
Expand Down

0 comments on commit 5093085

Please sign in to comment.