on 15-07-2012 08:29 PM
I am getting a "native function returned error" exception when I create a new Texture2D.
string szFullPath = "/Application/Resources/Textures/" + szName; tex.Texture = new Texture2D(szFullPath, false);
my output window:
Unhandled Exception: Sce.PlayStation.Core.GraphicsSystemException: native function returned error. at Sce.PlayStation.Core.Error.ThrowNativeException (Int32 error) [0x00000] in <filename unknown>:0 at Sce.PlayStation.Core.Graphics.Texture..ctor (PixelBufferType type, System.String fileName, Boolean mipmap, PixelFormat format) [0x00000] in <filename unknown>:0 at Sce.PlayStation.Core.Graphics.Texture2D..ctor (System.String fileName, Boolean mipmap) [0x00000] in <filename unknown>:0 at TestEngine.CTextureManager.LoadTexture (System.String szName) [0x00000] in <filename unknown>:0
Does anyone have any ideas why I am getting this?
on 15-07-2012 09:58 PM
Hi:
Did you check your texture build action to content?
Cheers,
on 16-07-2012 04:48 AM
turn out i just had to reinstall the suite :/
on 16-07-2012 02:17 PM
Hi:
Tha's fix the problem then?
Cheers,
on 31-07-2012 09:31 AM
PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.
フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと
PSM DevPortalを一度ログアウトし、再度ログインしてください。


Website ©2013 Sony Computer Entertainment Europe
All content, game titles, trade names and/or trade dress, trademarks, artwork and associated imagery are trademarks and/or copyright material of their respective owners. All rights reserved. [more info]
%%http://community.eu.playstation.com/t5/Announcements/Beta-Trial-Information/td-p/11386362
best_shooter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_driver.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_performer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_footballer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_fighter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_creator.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_action_player.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
dev2.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Producer-and-Developer-Ranks/td-p/18407352
trophy.gif%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/The-Community-Awards-FAQ/td-p/18407096
PSlogoSM.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Online-Support-Coordinator-rank/td-p/18414870