D3D9 BeginScene 错误 是什么原因?

sgch1982 2008-03-19 09:47:49
Direct3D9: (ERROR) :BeginScene, already in scene. BeginScene failed.

D3D9 Helper: IDirect3DDevice9::BeginScene failed: D3DERR_INVALIDCALL
Direct3D9: (ERROR) :Present not allowed between BeginScene and EndScene. Present fails.
D3D9 Helper: IDirect3DDevice9::Present failed: D3DERR_INVALIDCALL
Direct3D9: (ERROR) :BeginScene, already in scene. BeginScene failed.

D3D9 Helper: IDirect3DDevice9::BeginScene failed: D3DERR_INVALIDCALL
...全文
268 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
rageliu 2008-03-19
  • 打赏
  • 举报
回复
Direct3D9: (ERROR) :BeginScene, already in scene. BeginScene failed. //已经调用BeginScene了????

D3D9 Helper: IDirect3DDevice9::BeginScene failed: D3DERR_INVALIDCALL
Direct3D9: (ERROR) :Present not allowed between BeginScene and EndScene. Present fails.//再EndScene前请别Present来呈现
D3D9 Helper: IDirect3DDevice9::Present failed: D3DERR_INVALIDCALL
Direct3D9: (ERROR) :BeginScene, already in scene. BeginScene failed.

D3D9 Helper: IDirect3DDevice9::BeginScene failed: D3DERR_INVALIDCALL
yxz_lp 2008-03-19
  • 打赏
  • 举报
回复
If the method succeeds, the return value is D3D_OK. The method will fail with D3DERR_INVALIDCALL if IDirect3DDevice9::BeginScene is called while already in a IDirect3DDevice9::BeginScene/IDirect3DDevice9::EndScene pair. This happens only when IDirect3DDevice9::BeginScene is called twice without first calling IDirect3DDevice9::EndScene.
是否是两次调用BeginScene而第一次没有调用EndScene。
闪破风浪 2008-03-19
  • 打赏
  • 举报
回复
这是DX的东西没装好吧?

19,469

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 图形处理/算法
社区管理员
  • 图形处理/算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧