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
30855b37
Commit
30855b37
authored
Jul 02, 2013
by
Jamie Madill
Committed by
Shannon Woods
Jul 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support querying if a vertex attribute is an un-normalized integer.
TRAC #23391 Signed-off-by: Shannon Woods Signed-off-by: Geoff Lang Authored-by: Jamie Madill
parent
aff71508
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
VertexAttribute.h
src/libGLESv2/VertexAttribute.h
+2
-0
libGLESv2.cpp
src/libGLESv2/libGLESv2.cpp
+3
-0
No files found.
src/libGLESv2/VertexAttribute.h
View file @
30855b37
...
...
@@ -77,6 +77,8 @@ class VertexAttribute
return
static_cast
<
T
>
(
mBoundBuffer
.
id
());
case
GL_VERTEX_ATTRIB_ARRAY_DIVISOR
:
return
static_cast
<
T
>
(
mDivisor
);
case
GL_VERTEX_ATTRIB_ARRAY_INTEGER
:
return
static_cast
<
T
>
(
mPureInteger
?
GL_TRUE
:
GL_FALSE
);
default
:
UNREACHABLE
();
return
static_cast
<
T
>
(
0
);
...
...
src/libGLESv2/libGLESv2.cpp
View file @
30855b37
...
...
@@ -1942,6 +1942,9 @@ bool validateGetVertexAttribParameters(GLenum pname, int clientVersion)
META_ASSERT
(
GL_VERTEX_ATTRIB_ARRAY_DIVISOR
==
GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE
);
return
true
;
case
GL_VERTEX_ATTRIB_ARRAY_INTEGER
:
return
((
clientVersion
>=
3
)
?
true
:
gl
::
error
(
GL_INVALID_ENUM
,
false
));
default:
return
gl
::
error
(
GL_INVALID_ENUM
,
false
);
}
...
...
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