summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/texture.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-09-03 13:30:42 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-09-03 13:30:42 +0200
commitd193abb0ad0827d5ecc0915d65b67faf68a87097 (patch)
tree9a750cfbd4d229c4607f4d9aaf76dea89944a0bd /src/osd/modules/render/bgfx/texture.cpp
parentd8cd5ca1346607349be6777d29358acef1e4517c (diff)
Update BGFX and BX packages and update MAME code to support new API (nw)
Generated missing shaders (nw)
Diffstat (limited to 'src/osd/modules/render/bgfx/texture.cpp')
-rw-r--r--src/osd/modules/render/bgfx/texture.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/osd/modules/render/bgfx/texture.cpp b/src/osd/modules/render/bgfx/texture.cpp
index c698f7a9ac5..ac2d9008568 100644
--- a/src/osd/modules/render/bgfx/texture.cpp
+++ b/src/osd/modules/render/bgfx/texture.cpp
@@ -17,18 +17,18 @@ bgfx_texture::bgfx_texture(std::string name, bgfx::TextureFormat::Enum format, u
, m_height(height)
{
bgfx::TextureInfo info;
- bgfx::calcTextureSize(info, width, height, 1, false, 1, format);
+ bgfx::calcTextureSize(info, width, height, 1, false, false, 1, format);
if (data != nullptr)
{
- m_texture = bgfx::createTexture2D(width, height, 1, format, flags, bgfx::copy(data, info.storageSize));
+ m_texture = bgfx::createTexture2D(width, height, false, 1, format, flags, bgfx::copy(data, info.storageSize));
}
else
{
- m_texture = bgfx::createTexture2D(width, height, 1, format, flags);
+ m_texture = bgfx::createTexture2D(width, height, false, 1, format, flags);
const bgfx::Memory* memory = bgfx::alloc(info.storageSize);
memset(memory->data, 0, info.storageSize);
- bgfx::updateTexture2D(m_texture, 0, 0, 0, width, height, memory, info.storageSize / height);
+ bgfx::updateTexture2D(m_texture, 0, 0, 0, 0, width, height, memory, info.storageSize / height);
}
}
@@ -39,8 +39,8 @@ bgfx_texture::bgfx_texture(std::string name, bgfx::TextureFormat::Enum format, u
, m_height(height)
{
bgfx::TextureInfo info;
- bgfx::calcTextureSize(info, width, height, 1, false, 1, format);
- m_texture = bgfx::createTexture2D(width, height, 1, format, flags, data);
+ bgfx::calcTextureSize(info, width, height, 1, false, false, 1, format);
+ m_texture = bgfx::createTexture2D(width, height, false, 1, format, flags, data);
}
bgfx_texture::~bgfx_texture()