Sign in to follow this  
soudersv

surface.getGraphics() fails with invalid call exception

Recommended Posts

soudersv    122
I'm trying to write into a texture using GDI calls under MDX and I can't seem to get getGraphics to return a vaild Graphics object. Here's what I'm currently doing - does any of this look out of place? Texture texture = new Texture(device, 64, 64, 1, Usage.None, Format.R8G8B8, Pool.Managed); Surface surface = texture.GetSurfaceLevel(0); Graphics surface_graphics = surface.GetGraphics(); Any ideas? Thanks, Vance [Edited by - soudersv on March 22, 2008 5:08:30 PM]

Share this post


Link to post
Share on other sites
soudersv    122
I'm running this in MDX on a Motorola Q - I don't think there are debug runtimes for that platform.

Any other ideas?

Thanks,
Vance

[Edited by - soudersv on March 22, 2008 5:43:11 PM]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this