Fixed createTexture default argument error.

This commit is contained in:
Branimir Karadžić 2014-02-19 23:04:19 -08:00
parent 753b9fdd15
commit 03632e48f6
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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)
{