mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
GLDraw: Fixed GLVertex copy
git-svn-id: svn://ultimatepp.org/upp/trunk@13745 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
2fe6a7d634
commit
c1e7833528
1 changed files with 4 additions and 2 deletions
|
|
@ -4,8 +4,10 @@ namespace Upp {
|
|||
|
||||
GLVertexData::GLVertexData(const GLVertexData& src)
|
||||
{
|
||||
data = src.data;
|
||||
data->refcount++;
|
||||
if(src.data) {
|
||||
data = src.data;
|
||||
data->refcount++;
|
||||
}
|
||||
}
|
||||
|
||||
GLVertexData& GLVertexData::operator=(const GLVertexData& src)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue