DirectX9 question

This is a discussion on DirectX9 question within the Game Programming forums, part of the General Programming Boards category; why doest the following function only fail when in fullscreen mode? if im in windowed mode im fine. Code: HRESULT ...

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    8

    DirectX9 question

    why doest the following function only fail when in fullscreen mode? if im in windowed mode im fine.

    Code:
    HRESULT hr = D3DXCreateTextureFromFileEx (d3dDevice, fileName, 0, 0, 0, 0, 
              D3DFMT_A8R8G8B8, D3DPOOL_MANAGED, D3DX_FILTER_NONE, D3DX_DEFAULT, 
              colorkey, &SrcInfo, NULL, &d3dTexture);
    it returns with a value D3DERR_INVALIDCALL. whats makes it valid in windowed mode but not fullscreen.

  2. #2
    Nor
    Nor is offline
    h ֆhr s Nor's Avatar
    Join Date
    Nov 2001
    Posts
    299
    is the error ocuring before this function call?
    if not then is must be one of your parameters
    Try to help all less knowledgeable than yourself, within
    the limits provided by time, complexity and tolerance.
    - Nor

  3. #3
    Registered User Coder's Avatar
    Join Date
    Aug 2001
    Location
    Cairo, Egypt
    Posts
    128
    Could be a texture format incompatability?
    Switch to the debug runtime, and watch the debug output.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 12:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21