Original Post
Hello, I'm trying to copy parts of a texture to a new texture. This works perfectly with uncompressed textures, also when copying the entire source texture it works, but when using compressed textures it fails. The function call that is used is: hr = D3DXLoadSurfaceFromSurface( destSurface, NULL, NULL, sourceSurface, NULL, &rectangle, D3DX_DEFAULT, 0 ); By default the destination texture is made using the same format as the source texture, but also when the destination texture is uncompressed it fails. It doesn't give an error, but most of the time the result is an empty texture, sometimes (when specifying a rectangle of which right and bottom are larger then half the size) is does copy something, but it just doesn't make sense. Any suggestion would be welcome.