diff options
-rwxr-xr-x | Gem/Gem.pd_darwin | bin | 4889784 -> 4889784 bytes | |||
-rw-r--r-- | Gem/develop/include/Gem/Gem/ContextData.h | 13 | ||||
-rwxr-xr-x | Gem/gem_filmAVFoundation.so | bin | 34800 -> 34800 bytes | |||
-rwxr-xr-x | Gem/gem_imageJPEG.so | bin | 50444 -> 50444 bytes | |||
-rwxr-xr-x | Gem/gem_imageMAGICK.so | bin | 53632 -> 53632 bytes | |||
-rwxr-xr-x | Gem/gem_imageSGI.so | bin | 57464 -> 57464 bytes | |||
-rwxr-xr-x | Gem/gem_imageTIFF.so | bin | 65624 -> 65624 bytes | |||
-rwxr-xr-x | Gem/gem_modelOBJ.so | bin | 86692 -> 86692 bytes | |||
-rwxr-xr-x | Gem/gemcocoawindow.pd_darwin | bin | 39008 -> 39008 bytes | |||
-rwxr-xr-x | Gem/gemglfw2window.pd_darwin | bin | 27384 -> 27384 bytes | |||
-rwxr-xr-x | Gem/gemglfw3window.pd_darwin | bin | 36976 -> 36976 bytes | |||
-rwxr-xr-x | Gem/gemglutwindow.pd_darwin | bin | 42968 -> 42968 bytes | |||
-rwxr-xr-x | Gem/gemsdlwindow.pd_darwin | bin | 40488 -> 40488 bytes | |||
-rwxr-xr-x | Gem/pix_drum.pd_darwin | bin | 25584 -> 25584 bytes | |||
-rwxr-xr-x | Gem/pix_fiducialtrack.pd_darwin | bin | 73756 -> 73756 bytes | |||
-rwxr-xr-x | Gem/pix_hit.pd_darwin | bin | 27472 -> 27472 bytes | |||
-rwxr-xr-x | Gem/pix_mano.pd_darwin | bin | 39632 -> 39632 bytes |
17 files changed, 8 insertions, 5 deletions
diff --git a/Gem/Gem.pd_darwin b/Gem/Gem.pd_darwin Binary files differindex 0757c38..77ed990 100755 --- a/Gem/Gem.pd_darwin +++ b/Gem/Gem.pd_darwin 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 Binary files differindex 71c4a37..421f95a 100755 --- a/Gem/gem_filmAVFoundation.so +++ b/Gem/gem_filmAVFoundation.so diff --git a/Gem/gem_imageJPEG.so b/Gem/gem_imageJPEG.so Binary files differindex fa9aecf..5214657 100755 --- a/Gem/gem_imageJPEG.so +++ b/Gem/gem_imageJPEG.so diff --git a/Gem/gem_imageMAGICK.so b/Gem/gem_imageMAGICK.so Binary files differindex 975ef15..d4db698 100755 --- a/Gem/gem_imageMAGICK.so +++ b/Gem/gem_imageMAGICK.so diff --git a/Gem/gem_imageSGI.so b/Gem/gem_imageSGI.so Binary files differindex 4274296..75aa71e 100755 --- a/Gem/gem_imageSGI.so +++ b/Gem/gem_imageSGI.so diff --git a/Gem/gem_imageTIFF.so b/Gem/gem_imageTIFF.so Binary files differindex b26be6b..a514b33 100755 --- a/Gem/gem_imageTIFF.so +++ b/Gem/gem_imageTIFF.so diff --git a/Gem/gem_modelOBJ.so b/Gem/gem_modelOBJ.so Binary files differindex 74bc933..7264cf9 100755 --- a/Gem/gem_modelOBJ.so +++ b/Gem/gem_modelOBJ.so diff --git a/Gem/gemcocoawindow.pd_darwin b/Gem/gemcocoawindow.pd_darwin Binary files differindex 385da8c..069b84f 100755 --- a/Gem/gemcocoawindow.pd_darwin +++ b/Gem/gemcocoawindow.pd_darwin diff --git a/Gem/gemglfw2window.pd_darwin b/Gem/gemglfw2window.pd_darwin Binary files differindex 17736ae..2afd7ff 100755 --- a/Gem/gemglfw2window.pd_darwin +++ b/Gem/gemglfw2window.pd_darwin diff --git a/Gem/gemglfw3window.pd_darwin b/Gem/gemglfw3window.pd_darwin Binary files differindex 0ba6a6d..407a4d3 100755 --- a/Gem/gemglfw3window.pd_darwin +++ b/Gem/gemglfw3window.pd_darwin diff --git a/Gem/gemglutwindow.pd_darwin b/Gem/gemglutwindow.pd_darwin Binary files differindex df9b16f..d29c29c 100755 --- a/Gem/gemglutwindow.pd_darwin +++ b/Gem/gemglutwindow.pd_darwin diff --git a/Gem/gemsdlwindow.pd_darwin b/Gem/gemsdlwindow.pd_darwin Binary files differindex d0f44a6..834350c 100755 --- a/Gem/gemsdlwindow.pd_darwin +++ b/Gem/gemsdlwindow.pd_darwin diff --git a/Gem/pix_drum.pd_darwin b/Gem/pix_drum.pd_darwin Binary files differindex e848c1e..a25bc92 100755 --- a/Gem/pix_drum.pd_darwin +++ b/Gem/pix_drum.pd_darwin diff --git a/Gem/pix_fiducialtrack.pd_darwin b/Gem/pix_fiducialtrack.pd_darwin Binary files differindex 0660a80..b927ab0 100755 --- a/Gem/pix_fiducialtrack.pd_darwin +++ b/Gem/pix_fiducialtrack.pd_darwin diff --git a/Gem/pix_hit.pd_darwin b/Gem/pix_hit.pd_darwin Binary files differindex 56d49ee..8d3750b 100755 --- a/Gem/pix_hit.pd_darwin +++ b/Gem/pix_hit.pd_darwin diff --git a/Gem/pix_mano.pd_darwin b/Gem/pix_mano.pd_darwin Binary files differindex 50d2d5a..067bd8b 100755 --- a/Gem/pix_mano.pd_darwin +++ b/Gem/pix_mano.pd_darwin |