Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 749 vs 750 for /trunk/Source Code/Platform/Video/Headers/RenderAPIWrapper.h

Diff revisions: vs.
  @@ -217,7 +217,7 @@
217 217 }
218 218
219 219 inline bool renderBoundsSphere() const {
220 - return BitCompare(_renderOptions, to_const_uint(RenderOptions::RENDER_BOUNDS_AABB));
220 + return BitCompare(_renderOptions, to_const_uint(RenderOptions::RENDER_BOUNDS_SPHERE));
221 221 }
222 222
223 223 inline const IndirectDrawCommand& cmd() const {
  @@ -302,6 +302,14 @@
302 302 {
303 303 }
304 304
305 + TextureData& operator=(const TextureData& other) {
306 + _textureType = other._textureType;
307 + _samplerHash = other._samplerHash;
308 + _textureHandle = other._textureHandle;
309 +
310 + return *this;
311 + }
312 +
305 313 inline void set(const TextureData& other) {
306 314 _textureHandle = other._textureHandle;
307 315 _textureType = other._textureType;
  @@ -390,16 +398,16 @@
390 398 virtual void incQueue() {
391 399 if (queueLength() > 1) {
392 400 WriteLock w_lock(_lock);
393 - ++_queueWriteIndex %= _queueLength;
394 - ++_queueReadIndex %= _queueLength;
401 + _queueWriteIndex = (_queueWriteIndex + 1) % _queueLength;
402 + _queueReadIndex = (_queueLength + 1) & _queueLength;
395 403 }
396 404 }
397 405
398 406 inline void decQueue() {
399 407 if (queueLength() > 1) {
400 408 WriteLock w_lock(_lock);
401 - --_queueWriteIndex %= _queueLength;
402 - --_queueReadIndex %= _queueLength;
409 + _queueWriteIndex = (_queueWriteIndex - 1) % _queueLength;
410 + _queueReadIndex = (_queueLength - 1) & _queueLength;
403 411 }
404 412 }
405 413