Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
angle
Commits
94910c9e
Commit
94910c9e
authored
Nov 09, 2011
by
daniel@transgaming.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Perform proper Reset sequence.
Author: Nicolas Capens git-svn-id:
https://angleproject.googlecode.com/svn/trunk@815
736b8ea6-26fd-11df-bfd4-992fa37f6226
parent
4ccb8b5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
Display.cpp
src/libEGL/Display.cpp
+8
-4
No files found.
src/libEGL/Display.cpp
View file @
94910c9e
...
@@ -457,15 +457,19 @@ bool Display::createDevice()
...
@@ -457,15 +457,19 @@ bool Display::createDevice()
bool
Display
::
resetDevice
()
bool
Display
::
resetDevice
()
{
{
D3DPRESENT_PARAMETERS
presentParameters
=
getDefaultPresentParameters
();
D3DPRESENT_PARAMETERS
presentParameters
=
getDefaultPresentParameters
();
HRESULT
result
;
HRESULT
result
=
mDevice
->
TestCooperativeLevel
()
;
do
while
(
result
==
D3DERR_DEVICELOST
)
{
{
Sleep
(
0
);
// Give the graphics driver some CPU time
Sleep
(
10
0
);
// Give the graphics driver some CPU time
result
=
mDevice
->
TestCooperativeLevel
();
}
if
(
result
==
D3DERR_DEVICENOTRESET
)
{
result
=
mDevice
->
Reset
(
&
presentParameters
);
result
=
mDevice
->
Reset
(
&
presentParameters
);
}
}
while
(
result
==
D3DERR_DEVICELOST
);
if
(
FAILED
(
result
))
if
(
FAILED
(
result
))
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment