🔒 Locked
Creating texture
Advertisement
Original Post
I created my texture in this way:
if(FAILED(m_pd3dDevice->CreateTexture(256, 256, 0, 0, D3DFMT_P8, D3DPOOL_MANAGED, &m_pFiremap)))
{
return E_FAIL;
}
the parameter D3DFMT_P8, according to doc, defines the surface format as 8-bit color indexed. But I do not know why the value returned is E_FAIL. Can anyone give some ideas?
Thanks for any help!!!
even more weird thing happend: code that runs well under retail version now doen''t work under debug version. Here is the piece of code that failed:
if(FAILED(m_pd3dDevice->SetPaletteEntries(currIndex + 1 ,m_mypal)))
return E_FAIL;
Oh, and my original error still exists and I got no response at all from debug version???
if(FAILED(m_pd3dDevice->SetPaletteEntries(currIndex + 1 ,m_mypal)))
return E_FAIL;
Oh, and my original error still exists and I got no response at all from debug version???
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement