提交 846be206 编写于 作者: J jpark37

libobs-opengl: Don't allow volume render targets

Unlikely to be necessary. Disable for simplicity.
上级 e5871483
......@@ -139,7 +139,7 @@ gs_texture_t *device_voltexture_create(gs_device_t *device, uint32_t width,
tex->base.gl_type = get_gl_format_type(color_format);
tex->base.gl_target = GL_TEXTURE_3D;
tex->base.is_dynamic = (flags & GS_DYNAMIC) != 0;
tex->base.is_render_target = (flags & GS_RENDER_TARGET) != 0;
tex->base.is_render_target = false;
tex->base.is_dummy = (flags & GS_GL_DUMMYTEX) != 0;
tex->base.gen_mipmaps = (flags & GS_BUILD_MIPMAPS) != 0;
tex->width = width;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册