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
ee7010d4
Commit
ee7010d4
authored
Oct 17, 2013
by
Jamie Madill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for querying major and minor GL version in ES3 contexts.
TRAC #23989 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods
parent
455a6f5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Context.cpp
src/libGLESv2/Context.cpp
+4
-0
No files found.
src/libGLESv2/Context.cpp
View file @
ee7010d4
...
...
@@ -1685,6 +1685,8 @@ bool Context::getIntegerv(GLenum pname, GLint *params)
case
GL_MAX_VERTEX_UNIFORM_BLOCKS
:
*
params
=
mRenderer
->
getMaxVertexShaderUniformBuffers
();
break
;
case
GL_MAX_FRAGMENT_UNIFORM_BLOCKS
:
*
params
=
mRenderer
->
getMaxFragmentShaderUniformBuffers
();
break
;
case
GL_MAX_COMBINED_UNIFORM_BLOCKS
:
*
params
=
getMaximumCombinedUniformBufferBindings
();
break
;
case
GL_MAJOR_VERSION
:
*
params
=
mClientVersion
;
break
;
case
GL_MINOR_VERSION
:
*
params
=
0
;
break
;
case
GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS
:
*
params
=
0
;
UNIMPLEMENTED
();
break
;
case
GL_NUM_COMPRESSED_TEXTURE_FORMATS
:
params
[
0
]
=
mNumCompressedTextureFormats
;
...
...
@@ -2223,6 +2225,8 @@ bool Context::getQueryParameterInfo(GLenum pname, GLenum *type, unsigned int *nu
case
GL_MAX_VERTEX_UNIFORM_COMPONENTS
:
case
GL_MAX_FRAGMENT_UNIFORM_COMPONENTS
:
case
GL_NUM_EXTENSIONS
:
case
GL_MAJOR_VERSION
:
case
GL_MINOR_VERSION
:
{
*
type
=
GL_INT
;
*
numParams
=
1
;
...
...
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