Fix OpenGL texture partial update.
Fix endless loop if trying to print a log message causes more messages to be logged. Closes #14.