directx texture dimensions
问题 so I've discovered that my graphics card automatically resizes textures to powers of 2, which isn't usually a problem but I need to render only a portion of my texture and in doing so, must have the dimensions it has been resized to... ex: I load a picture that is 370x300 pixels into my texture and try to draw it with a specific source rectangle RECT test; test.left = 0; test.top = 0; test.right = 370; test.bottom = 300; lpSpriteHandler->Draw( lpTexture, &test, // srcRect NULL, // center NULL