Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5742)

Issue 7794046: Avoid crash in createDevice() if it is called on a Display that did not initialize (e.g. Direct3DCr…

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by baustin
Modified:
11 years, 1 month ago
Reviewers:
apatrick1
CC:
angleproject-review_googlegroups.com
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Avoid crash in createDevice() if it is called on a Display that did not initialize (e.g. Direct3DCreate9 returned NULL). Fixed compiler warning.

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M src/libEGL/Display.cpp View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 6
baustin
11 years, 1 month ago (2013-03-19 18:00:16 UTC) #1
apatrick1
https://codereview.appspot.com/7794046/diff/4001/src/libEGL/Display.cpp File src/libEGL/Display.cpp (right): https://codereview.appspot.com/7794046/diff/4001/src/libEGL/Display.cpp#newcode482 src/libEGL/Display.cpp:482: return error(EGL_BAD_ALLOC, false); I think this should generate EGL_NOT_INITIALIZED.
11 years, 1 month ago (2013-03-19 18:57:07 UTC) #2
baustin
https://codereview.appspot.com/7794046/diff/4001/src/libEGL/Display.cpp File src/libEGL/Display.cpp (right): https://codereview.appspot.com/7794046/diff/4001/src/libEGL/Display.cpp#newcode482 src/libEGL/Display.cpp:482: return error(EGL_BAD_ALLOC, false); On 2013/03/19 18:57:07, apatrick1 wrote: > ...
11 years, 1 month ago (2013-03-19 20:53:55 UTC) #3
apatrick1
LGTM. Want me to commit it?
11 years, 1 month ago (2013-03-19 20:56:24 UTC) #4
baustin
Yes, please. I've got another change in Surface.cpp that I'll send out in a few ...
11 years, 1 month ago (2013-03-19 21:05:50 UTC) #5
apatrick1
11 years, 1 month ago (2013-03-19 21:29:13 UTC) #6
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b