A couple of times I have experienced problems with graphics in
relation to DrawText and even when copying between two offscreen
windows. Both times I have been able to cancel the error with
simply sending a dummy texture to the onscreen window, like this:
Screen('DrawTexture', w, dummy_texture); (...note I do not even flip
the buffer afterwards)
Do anyone have a good explanation of why this is? Perhaps my
understanding of onscreen windows and offscreen windows is lacking a
bit. Are not the onscreen and offscreen windows independent locations?
Thanks,
Anders
relation to DrawText and even when copying between two offscreen
windows. Both times I have been able to cancel the error with
simply sending a dummy texture to the onscreen window, like this:
Screen('DrawTexture', w, dummy_texture); (...note I do not even flip
the buffer afterwards)
Do anyone have a good explanation of why this is? Perhaps my
understanding of onscreen windows and offscreen windows is lacking a
bit. Are not the onscreen and offscreen windows independent locations?
Thanks,
Anders