@@ -52,35 +52,6 @@ namespace Ogre {
52
52
bool useShadowBuffer)
53
53
{
54
54
assert (numVerts > 0 );
55
- #if OGRE_D3D_MANAGE_BUFFERS
56
- // Override shadow buffer setting; managed buffers are automatically
57
- // backed by system memory
58
- // Don't override shadow buffer if discardable, since then we use
59
- // unmanaged buffers for speed (avoids write-through overhead)
60
- // Don't override if we use directX9EX, since then we don't have managed
61
- // pool. And creating non-write only default pool causes a performance warning.
62
- if (useShadowBuffer && !(usage & HardwareBuffer::HBU_DETAIL_DISCARDABLE) &&
63
- !D3D9RenderSystem::isDirectX9Ex ())
64
- {
65
- useShadowBuffer = false ;
66
- // Also drop any WRITE_ONLY so we can read direct
67
- if (usage == HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY)
68
- {
69
- usage = HardwareBuffer::HBU_DYNAMIC;
70
- }
71
- else if (usage == HardwareBuffer::HBU_STATIC_WRITE_ONLY)
72
- {
73
- usage = HardwareBuffer::HBU_STATIC;
74
- }
75
- }
76
- // If we have write only buffers in DirectX9Ex we will turn on the discardable flag.
77
- // Otherwise Ogre will operates in far less framerate
78
- if (D3D9RenderSystem::isDirectX9Ex () && (usage & HBU_DETAIL_WRITE_ONLY))
79
- {
80
- usage = (HardwareBuffer::Usage)
81
- ((unsigned int )usage | (unsigned int )HardwareBuffer::HBU_DETAIL_DISCARDABLE);
82
- }
83
- #endif
84
55
D3D9HardwareVertexBuffer* vbuf = OGRE_NEW D3D9HardwareVertexBuffer (
85
56
this , vertexSize, numVerts, usage, useShadowBuffer);
86
57
{
@@ -96,35 +67,6 @@ namespace Ogre {
96
67
HardwareBuffer::Usage usage, bool useShadowBuffer)
97
68
{
98
69
assert (numIndexes > 0 );
99
- #if OGRE_D3D_MANAGE_BUFFERS
100
- // Override shadow buffer setting; managed buffers are automatically
101
- // backed by system memory
102
- // Don't override shadow buffer if discardable, since then we use
103
- // unmanaged buffers for speed (avoids write-through overhead)
104
- // Don't override if we use directX9EX, since then we don't have managed
105
- // pool. And creating non-write only default pool causes a performance warning.
106
- if (useShadowBuffer && !(usage & HardwareBuffer::HBU_DETAIL_DISCARDABLE) &&
107
- !D3D9RenderSystem::isDirectX9Ex ())
108
- {
109
- useShadowBuffer = false ;
110
- // Also drop any WRITE_ONLY so we can read direct
111
- if (usage == HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY)
112
- {
113
- usage = HardwareBuffer::HBU_DYNAMIC;
114
- }
115
- else if (usage == HardwareBuffer::HBU_STATIC_WRITE_ONLY)
116
- {
117
- usage = HardwareBuffer::HBU_STATIC;
118
- }
119
- }
120
- // If we have write only buffers in DirectX9Ex we will turn on the discardable flag.
121
- // Otherwise Ogre will operates in far less framerate
122
- if (D3D9RenderSystem::isDirectX9Ex () && (usage & HBU_DETAIL_WRITE_ONLY))
123
- {
124
- usage = (HardwareBuffer::Usage)
125
- ((unsigned int )usage | (unsigned int )HardwareBuffer::HBU_DETAIL_DISCARDABLE);
126
- }
127
- #endif
128
70
D3D9HardwareIndexBuffer* idx = OGRE_NEW D3D9HardwareIndexBuffer (
129
71
this , itype, numIndexes, usage, useShadowBuffer);
130
72
{
0 commit comments