fix render texture flipping issues for GL