Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Reading the Viewport

This topic is 6111 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am getting strange results (very large numbers) when I try to read the viewport in the ResoreDeviceObjectMethod()? Anyone have any problems with reading the viewport under XP and 8.1?
	D3DVIEWPORT8 Viewport;
	cvIceSpriteVertices[0].y  = (float) Viewport.Height - 1;
	cvIceSpriteVertices[2].y  = (float) Viewport.Height - 1;
	cvIceSpriteVertices[2].x  = (float) Viewport.Width - 1;
	cvIceSpriteVertices[3].x  = (float) Viewport.Width - 1;

Share this post

Link to post
Share on other sites
With further debuging it seems that I am getting the following error when I call GetViewport:

Direct3D8: (INFO) :======================= Hal HWVP Pure device selected

Direct3D8: :DoneExclusiveMode
Direct3D8: (INFO) :HalDevice Driver Style 7

Direct3D8: (ERROR) :GetViewport does not work in pure-device

...Error: Get Viewport failed - Invalidcall

Does this mean that my driver is not supporting the call to GetViewport. If I switch to REF mode it seems to work. I am running Windows XP and a Radeon VIVO 64 Meg?


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!