Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load templates error #170

Open
chfeizy opened this issue Mar 6, 2023 · 0 comments
Open

load templates error #170

chfeizy opened this issue Mar 6, 2023 · 0 comments

Comments

@chfeizy
Copy link

chfeizy commented Mar 6, 2023

Mask::Resource::IBase::LoadDefault(nullptr, "ibl_museum_specular", &m_cache);

if (obs_data_has_user_value(g_templates, name.c_str())) {
obs_data_t* template_data = obs_data_get_obj(g_templates, name.c_str());
p = Load(parent, name, template_data, cache);
obs_data_release(template_data);
}

if (type == "image") {
// Image
return std::make_sharedMask::Resource::Image(parent, name, data, cache);
}
m_Texture = std::make_sharedGS::Texture(m_name, m_width, m_fmt, m_mipLevels, sides_mips, 0, m_cache);

m_texture = gs_cubetexture_create(size, format, mip_levels, mip_data, (flags & Flags::Dynamic) ? GS_DYNAMIC : 0 | (flags & Flags::BuildMipMaps) ? GS_BUILD_MIPMAPS : 0);

error: glBindTexture failed, glGetError returned GL_INVALID_ENUM(0x500)
Exception: EXC_BAD_ACCESS (code=2, address=0x16dbd01b0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant