finish up shader/sampler/texture/buffer loading/unloading/association

This commit is contained in:
jp9000
2013-10-12 12:35:38 -07:00
parent aeea0eadc9
commit 83ddb920a1
9 changed files with 280 additions and 26 deletions

View File

@@ -78,6 +78,7 @@ texture_t device_create_texture(device_t device, uint32_t width,
tex->base.gl_format = convert_gs_format(color_format);
tex->base.gl_internal_format = convert_gs_internal_format(color_format);
tex->base.gl_type = get_gl_format_type(color_format);
tex->base.gl_target = GL_TEXTURE_2D;
tex->base.is_dynamic = flags & GS_DYNAMIC;
tex->base.is_render_target = flags & GS_RENDERTARGET;
tex->base.gen_mipmaps = flags & GS_BUILDMIPMAPS;