纹理贴图不是2^n的大小时渲染错误




OpenGL 3.3遇到纹理贴图像素不是$2^n$时候,加入

glPixelStorei(GL_UNPACK_ALIGNMENT, 1);

具体参数待看

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.