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

Issue 2760041: eglCreateContext checks client version is 2....

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

Description

eglCreateContext checks client version is 2. I believe we don't support version 1 since we are missing things like the fixed function pipeline. This is motivated by consistency with other EGL implementations, which return a v1 context if the EGL_CONTEXT_CLIENT_VERSION attribute is not specified.

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -0 lines) Patch
M src/libEGL/libEGL.cpp View 1 chunk +19 lines, -0 lines 1 comment Download

Messages

Total messages: 2
apatrick1
Hi Daniel, Another review for you. Thanks, Al
13 years, 6 months ago (2010-10-27 01:51:31 UTC) #1
dgkoch
13 years, 6 months ago (2010-10-27 03:31:32 UTC) #2
Yeah, we definitely don't support OpenGL ES 1.0.

Looks good, other then changing the error code in the one case.

Daniel

http://codereview.appspot.com/2760041/diff/1/src/libEGL/libEGL.cpp
File src/libEGL/libEGL.cpp (right):

http://codereview.appspot.com/2760041/diff/1/src/libEGL/libEGL.cpp#newcode791
src/libEGL/libEGL.cpp:791: return error(EGL_BAD_ATTRIBUTE, EGL_NO_CONTEXT);
If I'm reading the spec correctly, I think this should be EGL_BAD_CONFIG instead
of EGL_BAD_ATTRIBUTE.   The EGL 1.4 spec says (p 43):
"If config is not a valid EGLConfig, or does not support the requested client
API , then an EGL_BAD_CONFIG error is generated (this includes requesting cre-
ation of an OpenGL ES 1.x context when the EGL_RENDERABLE_TYPE attribute of
config does not contain EGL_OPENGL_ES_BIT, or creation of an OpenGL ES 2.x
context when the attribute does not contain EGL_OPENGL_ES2_BIT)."
Sign in to reply to this message.

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