I have a for loop which should work fine.
Basically in this loop I draw the same image over and over using DrawTexture.
It works fine on the first run through the loop, but any subsequent runs give me this error:
error
INTERNAL PSYCHTOOLBOX ERROR
error: PsychError_InvalidWindowRecord
general description: An Invalid window record was referenced.
module name: Screen
subfunction call: DrawTexture
file name:
/Users/kleinerm/projects/OpenGLPsychtoolbox/trunk/PsychSourceGL/Projects/MacOSX/P
sychToolbox/../../../Source/Common/Screen/WindowHelpers.c
function name: PsychCheckIfWindowRecordIsValid
line number: 97
??? (null)
Error in ==> FinanceGame at 218
Screen('DrawTexture', w, probe.imagetex, [], probe.sRect);
Can anyone shed some light on what the problem might be?
Basically in this loop I draw the same image over and over using DrawTexture.
It works fine on the first run through the loop, but any subsequent runs give me this error:
error
INTERNAL PSYCHTOOLBOX ERROR
error: PsychError_InvalidWindowRecord
general description: An Invalid window record was referenced.
module name: Screen
subfunction call: DrawTexture
file name:
/Users/kleinerm/projects/OpenGLPsychtoolbox/trunk/PsychSourceGL/Projects/MacOSX/P
sychToolbox/../../../Source/Common/Screen/WindowHelpers.c
function name: PsychCheckIfWindowRecordIsValid
line number: 97
??? (null)
Error in ==> FinanceGame at 218
Screen('DrawTexture', w, probe.imagetex, [], probe.sRect);
Can anyone shed some light on what the problem might be?