mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-10-25 18:25:29 +00:00
Optimized encoder bind state, and uniform updates. (#3976)
This commit is contained in:
+1
-2
@@ -3071,8 +3071,7 @@ namespace bgfx
|
||||
if (type & kUniformRefBit)
|
||||
{
|
||||
type &= ~kUniformRefBit;
|
||||
const void* ptr;
|
||||
bx::memCopy(&ptr, _uniformBuffer->read(sizeof(ptr) ), sizeof(ptr) );
|
||||
const void* ptr = bx::loadUnaligned<const void*>(_uniformBuffer->read(sizeof(ptr) ) );
|
||||
if (UniformType::Count > type)
|
||||
{
|
||||
_renderCtx->updateUniform(loc, ptr, g_uniformTypeSize[type]*num);
|
||||
|
||||
Reference in New Issue
Block a user