HostDisplay: Make textures have levels/layers/samples attributes
This commit is contained in:
parent
e54ba23c4f
commit
6c6fdeb15e
13 changed files with 174 additions and 175 deletions
|
|
@ -437,8 +437,8 @@ bool CommonHostInterface::SetFullscreen(bool enabled)
|
|||
|
||||
bool CommonHostInterface::CreateHostDisplayResources()
|
||||
{
|
||||
m_logo_texture =
|
||||
m_display->CreateTexture(APP_ICON_WIDTH, APP_ICON_HEIGHT, APP_ICON_DATA, sizeof(u32) * APP_ICON_WIDTH, false);
|
||||
m_logo_texture = m_display->CreateTexture(APP_ICON_WIDTH, APP_ICON_HEIGHT, 1, 1, 1, HostDisplayPixelFormat::RGBA8,
|
||||
APP_ICON_DATA, sizeof(u32) * APP_ICON_WIDTH, false);
|
||||
if (!m_logo_texture)
|
||||
Log_WarningPrintf("Failed to create logo texture");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue