bug

there must be special conditions to set GL_TEXTURE_WRAP_R