2.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 63ea46dc authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

fixed some valgrind issues

parent 45d9ad1e
...@@ -92,25 +92,25 @@ namespace campvis { ...@@ -92,25 +92,25 @@ namespace campvis {
switch (wtp._baseType) { switch (wtp._baseType) {
case WeaklyTypedPointer::UINT8: case WeaklyTypedPointer::UINT8:
delete static_cast<uint8_t*>(wtp._pointer); delete [] static_cast<uint8_t*>(wtp._pointer);
break; break;
case WeaklyTypedPointer::INT8: case WeaklyTypedPointer::INT8:
delete static_cast<int8_t*>(wtp._pointer); delete [] static_cast<int8_t*>(wtp._pointer);
break; break;
case WeaklyTypedPointer::UINT16: case WeaklyTypedPointer::UINT16:
delete static_cast<uint16_t*>(wtp._pointer); delete [] static_cast<uint16_t*>(wtp._pointer);
break; break;
case WeaklyTypedPointer::INT16: case WeaklyTypedPointer::INT16:
delete static_cast<int16_t*>(wtp._pointer); delete [] static_cast<int16_t*>(wtp._pointer);
break; break;
case WeaklyTypedPointer::UINT32: case WeaklyTypedPointer::UINT32:
delete static_cast<uint32_t*>(wtp._pointer); delete [] static_cast<uint32_t*>(wtp._pointer);
break; break;
case WeaklyTypedPointer::INT32: case WeaklyTypedPointer::INT32:
delete static_cast<int32_t*>(wtp._pointer); delete [] static_cast<int32_t*>(wtp._pointer);
break; break;
case WeaklyTypedPointer::FLOAT: case WeaklyTypedPointer::FLOAT:
delete static_cast<float*>(wtp._pointer); delete [] static_cast<float*>(wtp._pointer);
break; break;
default: default:
tgtAssert(false, "Should not reach this - wrong base data type!"); tgtAssert(false, "Should not reach this - wrong base data type!");
......
...@@ -43,6 +43,7 @@ Camera::Camera(const vec3& position, const vec3& focus, const vec3& up, ...@@ -43,6 +43,7 @@ Camera::Camera(const vec3& position, const vec3& focus, const vec3& up,
upVector_(normalize(up)), upVector_(normalize(up)),
frust_(Frustum(fovy, ratio, distn, distf)), frust_(Frustum(fovy, ratio, distn, distf)),
windowRatio_(1.f), windowRatio_(1.f),
viewMatrixValid_(false),
projectionMode_(pm) projectionMode_(pm)
{ {
viewMatrix_ = mat4::createLookAt(position, focus, up); viewMatrix_ = mat4::createLookAt(position, focus, up);
......
...@@ -48,6 +48,7 @@ namespace campvis { ...@@ -48,6 +48,7 @@ namespace campvis {
, p_clipX("clipX", "X Axis Clip Coordinates", tgt::ivec2(0), tgt::ivec2(0), tgt::ivec2(0)) , p_clipX("clipX", "X Axis Clip Coordinates", tgt::ivec2(0), tgt::ivec2(0), tgt::ivec2(0))
, p_clipY("clipY", "Y Axis Clip Coordinates", tgt::ivec2(0), tgt::ivec2(0), tgt::ivec2(0)) , p_clipY("clipY", "Y Axis Clip Coordinates", tgt::ivec2(0), tgt::ivec2(0), tgt::ivec2(0))
, p_clipZ("clipZ", "Z Axis Clip Coordinates", tgt::ivec2(0), tgt::ivec2(0), tgt::ivec2(0)) , p_clipZ("clipZ", "Z Axis Clip Coordinates", tgt::ivec2(0), tgt::ivec2(0), tgt::ivec2(0))
, _sourceTimestamp(0)
{ {
addProperty(&p_sourceImageID); addProperty(&p_sourceImageID);
addProperty(&p_geometryID); addProperty(&p_geometryID);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment