You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Use D3D9Ex when available
This hopefully works around crashes in Intel D3D9 support in Windows 8.1."
Stacktrace:
Playerd.exe!D3D_RecreateTextureRep(IDirect3DDevice9 * device, D3D_TextureRep * texture, unsigned int format, int w, int h) Zeile 844 C
Playerd.exe!D3D_RecreateTexture(SDL_Renderer * renderer, SDL_Texture * texture) Zeile 969 C
Playerd.exe!D3D_Reset(SDL_Renderer * renderer) Zeile 419 C
Playerd.exe!D3D_ActivateRenderer(SDL_Renderer * renderer) Zeile 474 C
Playerd.exe!D3D_RenderClear(SDL_Renderer * renderer) Zeile 1232 C
Playerd.exe!SDL_RenderClear(SDL_Renderer * renderer) Zeile 1354 C
Playerd.exe!SdlUi::UpdateDisplay() Zeile 543 C++
[...]
On 2015-10-11 12:14:38 +0000, Gab wrote:
Oh and this crashes with both Intel and Nvidia for me. Both have up-to-date drivers.
On 2015-12-29 16:36:38 +0000, David Ludwig wrote:
Hi Gab,
I'm unable to reproduce this on any of my Windows systems, and I'm not sure why. I created a window with SDL_WINDOW_RESIZABLE set, but was able to resize it without crashing, both with and without textures on it.
Do you have any additional details on the system(s) you used to test this on?
Any chance you could provide a sample program?
On 2015-12-29 19:32:59 +0000, Gab wrote:
Thanks for the update, I will recheck. Maybe got fixed in the meanwhile.
Gab, might you have code for a small, sample program, which I could use to try reproducing this?
On 2016-01-12 19:59:21 +0000, Gab wrote:
Sorry, was my fault. I'm using the DirectX February 2010 SDK for compiling (since years) and just read on MSDN that they ship the DX SDK now with the Windows SDK... So removing that include fixed the crash.
On 2016-01-12 20:02:22 +0000, David Ludwig wrote:
Got it. Thanks for the updated info!
On 2016-01-13 22:06:06 +0000, Gab wrote:
I'm sorry, have to reopen. I encountered the crash again and figured out the real cause now by stepping through SDL code.
The SDL_Texture must be created with a SDL_TEXTURE_FORMAT that is not supported (returns false for "IsSupportedFormat", for me this is SDL_PIXELFORMAT_ABGR8888)
This results in two textures being created (one in unsupported format, one in supported format) and only the supported one gets the "driverdata" field assigned (makes sense because only the supported one can be used by DirectX).
But D3D_Reset just loops over all textures and passes them to D3D_RecreateTexture which accesses driverdata but does not check for NULL.
The DirectX 11 backend has a NULL check in D3D11_DestroyTexture:
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: HG 2.1
Reported for operating system, platform: Windows 8, x86
Comments on the original bug report:
On 2015-10-11 12:12:13 +0000, Gab wrote:
On 2015-10-11 12:14:38 +0000, Gab wrote:
On 2015-12-29 16:36:38 +0000, David Ludwig wrote:
On 2015-12-29 19:32:59 +0000, Gab wrote:
On 2015-12-30 19:22:12 +0000, David Ludwig wrote:
On 2016-01-12 19:59:21 +0000, Gab wrote:
On 2016-01-12 20:02:22 +0000, David Ludwig wrote:
On 2016-01-13 22:06:06 +0000, Gab wrote:
On 2016-01-13 22:44:09 +0000, Gab wrote:
On 2016-04-07 00:47:12 +0000, Stephen E. Baker wrote:
On 2016-06-22 19:09:23 +0000, Kai Sterker wrote:
On 2016-06-25 02:20:23 +0000, David Ludwig wrote:
The text was updated successfully, but these errors were encountered: