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
93a5ce96
Commit
93a5ce96
authored
Jul 22, 2013
by
Geoff Lang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cache applied primitive topology.
Issue #451 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods Author: Geoff Lang
parent
a6abd891
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
Renderer11.cpp
src/libGLESv2/renderer/Renderer11.cpp
+7
-1
Renderer11.h
src/libGLESv2/renderer/Renderer11.h
+3
-0
No files found.
src/libGLESv2/renderer/Renderer11.cpp
View file @
93a5ce96
...
@@ -849,7 +849,11 @@ bool Renderer11::applyPrimitiveType(GLenum mode, GLsizei count)
...
@@ -849,7 +849,11 @@ bool Renderer11::applyPrimitiveType(GLenum mode, GLsizei count)
return
gl
::
error
(
GL_INVALID_ENUM
,
false
);
return
gl
::
error
(
GL_INVALID_ENUM
,
false
);
}
}
mDeviceContext
->
IASetPrimitiveTopology
(
primitiveTopology
);
if
(
primitiveTopology
!=
mCurrentPrimitiveTopology
)
{
mDeviceContext
->
IASetPrimitiveTopology
(
primitiveTopology
);
mCurrentPrimitiveTopology
=
primitiveTopology
;
}
return
count
>
0
;
return
count
>
0
;
}
}
...
@@ -1816,6 +1820,8 @@ void Renderer11::markAllStateDirty()
...
@@ -1816,6 +1820,8 @@ void Renderer11::markAllStateDirty()
mCurrentVertexConstantBuffer
=
NULL
;
mCurrentVertexConstantBuffer
=
NULL
;
mCurrentPixelConstantBuffer
=
NULL
;
mCurrentPixelConstantBuffer
=
NULL
;
mCurrentGeometryConstantBuffer
=
NULL
;
mCurrentGeometryConstantBuffer
=
NULL
;
mCurrentPrimitiveTopology
=
D3D_PRIMITIVE_TOPOLOGY_UNDEFINED
;
}
}
void
Renderer11
::
releaseDeviceResources
()
void
Renderer11
::
releaseDeviceResources
()
...
...
src/libGLESv2/renderer/Renderer11.h
View file @
93a5ce96
...
@@ -288,6 +288,9 @@ class Renderer11 : public Renderer
...
@@ -288,6 +288,9 @@ class Renderer11 : public Renderer
float
mCurNear
;
float
mCurNear
;
float
mCurFar
;
float
mCurFar
;
// Currently applied primitive topology
D3D11_PRIMITIVE_TOPOLOGY
mCurrentPrimitiveTopology
;
unsigned
int
mAppliedIBSerial
;
unsigned
int
mAppliedIBSerial
;
unsigned
int
mAppliedStorageIBSerial
;
unsigned
int
mAppliedStorageIBSerial
;
unsigned
int
mAppliedIBOffset
;
unsigned
int
mAppliedIBOffset
;
...
...
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