System: Windows XP, nVidia 6800 SLI
Compiler/IDE: Turbo Delphi
API: DirectX 9

Hi all,

Im rendering onto a render target texture, but nothing happens when the resolution of my screen is lower that the resolution of my render target.

For example: My render target is 512x512 and my screen resolution is 800x600 everything is fine. When I set my screen resolution to anything below 512x512 the render target does not get updated!

The rest of the scene what is NOT rendered to a render target is renderd correctly!

This is how I create my render target:
Code:
  if Succeeded( Device.Screen.device.CreateTexture(FParam.Width, FParam.Height, FParam.MipMapCount,
                              D3DUSAGE_RENDERTARGET,
                              Necro3DFMTToD3DFMT(FParam.Format),
                              D3DPOOL_DEFAULT,
                              Texture,
                              nil) ) then
  begin
    Loaded := true;
  end else
    Loaded := false;
The begin-scene code: (the beginning when I try to render to my render target):
Code:
  if Texture<>nil then
  begin
    FRenderTargetIndex &#58;= Index;
    Device &#58;= TNecro3D_Device9&#40; GetDevice &#41;;

    Device.Screen.Device.GetRenderTarget&#40;Index, FOldRenderTarget&#41;;
    Texture.GetSurfaceLevel&#40;0, FRenderTarget&#41;;
    Device.Screen.Device.SetRenderTarget&#40;Index, FRenderTarget&#41;;
    Device.Screen.Device.BeginScene;
    FCanRender &#58;= true;
  end;
Comment: FCanRender is always true just for testing...

And this is called whenever I finish rendering to my render target:
Code:
  if FCanRender then
  begin
    Device &#58;= TNecro3D_Device9&#40; GetDevice &#41;;
    Device.Screen.Device.EndScene;

    Device.Screen.Device.SetRenderTarget&#40;FRenderTargetIndex, FOldRenderTarget&#41;;
    FOldRenderTarget &#58;= nil;
    FRenderTarget &#58;= nil;
  end;