Fixed createTexture default argument error.
This commit is contained in:
parent
753b9fdd15
commit
03632e48f6
@ -1957,7 +1957,7 @@ namespace bgfx
|
||||
tc.m_mem = _mem;
|
||||
bx::write(&writer, tc);
|
||||
|
||||
return s_ctx->createTexture(mem, _flags, NULL);
|
||||
return s_ctx->createTexture(mem, _flags, 0, NULL);
|
||||
}
|
||||
|
||||
TextureHandle createTexture3D(uint16_t _width, uint16_t _height, uint16_t _depth, uint8_t _numMips, TextureFormat::Enum _format, uint32_t _flags, const Memory* _mem)
|
||||
@ -1999,7 +1999,7 @@ namespace bgfx
|
||||
tc.m_mem = _mem;
|
||||
bx::write(&writer, tc);
|
||||
|
||||
return s_ctx->createTexture(mem, _flags, NULL);
|
||||
return s_ctx->createTexture(mem, _flags, 0, NULL);
|
||||
}
|
||||
|
||||
TextureHandle createTextureCube(uint16_t _size, uint8_t _numMips, TextureFormat::Enum _format, uint32_t _flags, const Memory* _mem)
|
||||
@ -2040,7 +2040,7 @@ namespace bgfx
|
||||
tc.m_mem = _mem;
|
||||
bx::write(&writer, tc);
|
||||
|
||||
return s_ctx->createTexture(mem, _flags, NULL);
|
||||
return s_ctx->createTexture(mem, _flags, 0, NULL);
|
||||
}
|
||||
|
||||
void destroyTexture(TextureHandle _handle)
|
||||
|
@ -2148,7 +2148,7 @@ namespace bgfx
|
||||
fragmentShaderDecRef(m_programRef[_handle.idx].m_fsh);
|
||||
}
|
||||
|
||||
BGFX_API_FUNC(TextureHandle createTexture(const Memory* _mem, uint32_t _flags, uint8_t _skip, TextureInfo* _info = NULL) )
|
||||
BGFX_API_FUNC(TextureHandle createTexture(const Memory* _mem, uint32_t _flags, uint8_t _skip, TextureInfo* _info) )
|
||||
{
|
||||
if (NULL != _info)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user