Jump to content

d3d: failed to create 2D texture


Recommended Posts

All of a sudden, when testing a mod for 1.4.1, I'm getting the following errors when loading:

Load(Texture): PartCommanderContinued/textures/aero_off
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

d3d: failed to create 2D texture id=2435 w=10 h=10 mips=4 d3dfmt=894720068 [invalid call]
Load(Texture): PartCommanderContinued/textures/aero_on
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

d3d: failed to create 2D texture id=2437 w=10 h=10 mips=4 d3dfmt=894720068 [invalid call]
Load(Texture): PartCommanderContinued/textures/az_off
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

d3d: failed to create 2D texture id=2439 w=10 h=10 mips=4 d3dfmt=894720068 [invalid call]
Load(Texture): PartCommanderContinued/textures/az_on
 

It's not even at the code yet, so I have no idea what's going on.  Can someone give me a clue?

Link to comment
Share on other sites

I should point out that this works fine in KSP 1.3.1, so I would suspect something with Unity.

these are ver small png files, for window decorations

I found this post which seems to be relevent:https://forum.unity.com/threads/d3d11-failed-to-create-2d-texture.392286/

but not sure how to fix it yet.

Is KSP trying to compress an image which incompressable?

I suppose I can just rewrite the code to load from the file rather than the database, but would like to understand this for the future, and for anyone else who may come across this.

Link to comment
Share on other sites

5 hours ago, linuxgurugamer said:

I should point out that this works fine in KSP 1.3.1, so I would suspect something with Unity.

these are ver small png files, for window decorations

I found this post which seems to be relevent:https://forum.unity.com/threads/d3d11-failed-to-create-2d-texture.392286/

but not sure how to fix it yet.

Is KSP trying to compress an image which incompressable?

I suppose I can just rewrite the code to load from the file rather than the database, but would like to understand this for the future, and for anyone else who may come across this.

Resize the texture to a power of 2. Like 16x16

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...