EFileTahi-A
Well-known member
My directX dveice is set to be rendered into a panel control. This works fine as long I dont resize the panel. If I change the panels size it does give this error:
"An unhandled exception of type System.NullReferenceException occurred in microsoft.directx.direct3dx.dll
Additional information: Object reference not set to an instance of an object".
When executing the following code:
Why on earth the sprite.draw stops working when I change the panels size?!
The dxTexture[] have a texture (its not null), the textureSize is correctly set...
"An unhandled exception of type System.NullReferenceException occurred in microsoft.directx.direct3dx.dll
Additional information: Object reference not set to an instance of an object".
When executing the following code:
Code:
sprite.Draw(dxTexture[VAR.iTag], textureSize, new Vector3(0, 0, 0), new Vector3(0,0,0), Color.White);
Why on earth the sprite.draw stops working when I change the panels size?!
The dxTexture[] have a texture (its not null), the textureSize is correctly set...
Last edited by a moderator: