aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xGem/Gem.pd_darwinbin4889784 -> 4889784 bytes
-rw-r--r--Gem/develop/include/Gem/Gem/ContextData.h13
-rwxr-xr-xGem/gem_filmAVFoundation.sobin34800 -> 34800 bytes
-rwxr-xr-xGem/gem_imageJPEG.sobin50444 -> 50444 bytes
-rwxr-xr-xGem/gem_imageMAGICK.sobin53632 -> 53632 bytes
-rwxr-xr-xGem/gem_imageSGI.sobin57464 -> 57464 bytes
-rwxr-xr-xGem/gem_imageTIFF.sobin65624 -> 65624 bytes
-rwxr-xr-xGem/gem_modelOBJ.sobin86692 -> 86692 bytes
-rwxr-xr-xGem/gemcocoawindow.pd_darwinbin39008 -> 39008 bytes
-rwxr-xr-xGem/gemglfw2window.pd_darwinbin27384 -> 27384 bytes
-rwxr-xr-xGem/gemglfw3window.pd_darwinbin36976 -> 36976 bytes
-rwxr-xr-xGem/gemglutwindow.pd_darwinbin42968 -> 42968 bytes
-rwxr-xr-xGem/gemsdlwindow.pd_darwinbin40488 -> 40488 bytes
-rwxr-xr-xGem/pix_drum.pd_darwinbin25584 -> 25584 bytes
-rwxr-xr-xGem/pix_fiducialtrack.pd_darwinbin73756 -> 73756 bytes
-rwxr-xr-xGem/pix_hit.pd_darwinbin27472 -> 27472 bytes
-rwxr-xr-xGem/pix_mano.pd_darwinbin39632 -> 39632 bytes
17 files changed, 8 insertions, 5 deletions
diff --git a/Gem/Gem.pd_darwin b/Gem/Gem.pd_darwin
index 0757c38..77ed990 100755
--- a/Gem/Gem.pd_darwin
+++ b/Gem/Gem.pd_darwin
Binary files differ
diff --git a/Gem/develop/include/Gem/Gem/ContextData.h b/Gem/develop/include/Gem/Gem/ContextData.h
index 74804da..94f51b3 100644
--- a/Gem/develop/include/Gem/Gem/ContextData.h
+++ b/Gem/develop/include/Gem/Gem/ContextData.h
@@ -53,6 +53,7 @@ template<class ContextDataType = int>
//////////
// Constructor
+ /* coverity[uninit_member] we track the un-initialization ourselves */
ContextData(void) : m_haveDefaultValue(false) {;}
ContextData(ContextDataType v) : m_haveDefaultValue(true), m_defaultValue(v) {;}
@@ -66,9 +67,9 @@ template<class ContextDataType = int>
*
* @usage ContextData<GLenum>m_fun; m_fun=GL_FUNC_ADD;
*
- * @pre We are in a draw process.
+ * @pre We have a valid context.
* @note Should only be called from the draw function.
- * Results are un-defined for other functions.
+ * Results are un-defined if there is no valid context
*/
virtual operator ContextDataType()
{
@@ -78,17 +79,19 @@ template<class ContextDataType = int>
/**
* assigns a value to the correct context
*
- * @pre We are in a draw process.
+ * @pre We have a valid context.
* @note Should only be called from the draw function.
- * Results are un-defined for other functions.
+ * Results are un-defined if there is no valid context
*/
virtual ContextDataType&operator = (ContextDataType value)
{
/* simplistic approach to handle out-of-context assignments:
* assign the value to all context instances
+ * and use it as default value for future contexts
*/
if(INVALID_CONTEXT==getCurContext()) {
doSetAll(value);
+ m_defaultValue=value; m_haveDefaultValue=true;
}
return (*getPtrToCur()=value);
@@ -120,7 +123,7 @@ template<class ContextDataType = int>
/**
* Returns a pointer to the correct data element in the current context.
*
- * @pre We are in the draw function.
+ * @pre We have a valid context.
* @post Synchronized.
* @note ASSERT: Same context is rendered by same thread each time.
*/
diff --git a/Gem/gem_filmAVFoundation.so b/Gem/gem_filmAVFoundation.so
index 71c4a37..421f95a 100755
--- a/Gem/gem_filmAVFoundation.so
+++ b/Gem/gem_filmAVFoundation.so
Binary files differ
diff --git a/Gem/gem_imageJPEG.so b/Gem/gem_imageJPEG.so
index fa9aecf..5214657 100755
--- a/Gem/gem_imageJPEG.so
+++ b/Gem/gem_imageJPEG.so
Binary files differ
diff --git a/Gem/gem_imageMAGICK.so b/Gem/gem_imageMAGICK.so
index 975ef15..d4db698 100755
--- a/Gem/gem_imageMAGICK.so
+++ b/Gem/gem_imageMAGICK.so
Binary files differ
diff --git a/Gem/gem_imageSGI.so b/Gem/gem_imageSGI.so
index 4274296..75aa71e 100755
--- a/Gem/gem_imageSGI.so
+++ b/Gem/gem_imageSGI.so
Binary files differ
diff --git a/Gem/gem_imageTIFF.so b/Gem/gem_imageTIFF.so
index b26be6b..a514b33 100755
--- a/Gem/gem_imageTIFF.so
+++ b/Gem/gem_imageTIFF.so
Binary files differ
diff --git a/Gem/gem_modelOBJ.so b/Gem/gem_modelOBJ.so
index 74bc933..7264cf9 100755
--- a/Gem/gem_modelOBJ.so
+++ b/Gem/gem_modelOBJ.so
Binary files differ
diff --git a/Gem/gemcocoawindow.pd_darwin b/Gem/gemcocoawindow.pd_darwin
index 385da8c..069b84f 100755
--- a/Gem/gemcocoawindow.pd_darwin
+++ b/Gem/gemcocoawindow.pd_darwin
Binary files differ
diff --git a/Gem/gemglfw2window.pd_darwin b/Gem/gemglfw2window.pd_darwin
index 17736ae..2afd7ff 100755
--- a/Gem/gemglfw2window.pd_darwin
+++ b/Gem/gemglfw2window.pd_darwin
Binary files differ
diff --git a/Gem/gemglfw3window.pd_darwin b/Gem/gemglfw3window.pd_darwin
index 0ba6a6d..407a4d3 100755
--- a/Gem/gemglfw3window.pd_darwin
+++ b/Gem/gemglfw3window.pd_darwin
Binary files differ
diff --git a/Gem/gemglutwindow.pd_darwin b/Gem/gemglutwindow.pd_darwin
index df9b16f..d29c29c 100755
--- a/Gem/gemglutwindow.pd_darwin
+++ b/Gem/gemglutwindow.pd_darwin
Binary files differ
diff --git a/Gem/gemsdlwindow.pd_darwin b/Gem/gemsdlwindow.pd_darwin
index d0f44a6..834350c 100755
--- a/Gem/gemsdlwindow.pd_darwin
+++ b/Gem/gemsdlwindow.pd_darwin
Binary files differ
diff --git a/Gem/pix_drum.pd_darwin b/Gem/pix_drum.pd_darwin
index e848c1e..a25bc92 100755
--- a/Gem/pix_drum.pd_darwin
+++ b/Gem/pix_drum.pd_darwin
Binary files differ
diff --git a/Gem/pix_fiducialtrack.pd_darwin b/Gem/pix_fiducialtrack.pd_darwin
index 0660a80..b927ab0 100755
--- a/Gem/pix_fiducialtrack.pd_darwin
+++ b/Gem/pix_fiducialtrack.pd_darwin
Binary files differ
diff --git a/Gem/pix_hit.pd_darwin b/Gem/pix_hit.pd_darwin
index 56d49ee..8d3750b 100755
--- a/Gem/pix_hit.pd_darwin
+++ b/Gem/pix_hit.pd_darwin
Binary files differ
diff --git a/Gem/pix_mano.pd_darwin b/Gem/pix_mano.pd_darwin
index 50d2d5a..067bd8b 100755
--- a/Gem/pix_mano.pd_darwin
+++ b/Gem/pix_mano.pd_darwin
Binary files differ