2018-02-22 14:33:49 -08:00
|
|
|
From 197303cb41da9b38d1bedf246cab991d8db9389c Mon Sep 17 00:00:00 2001
|
2016-08-31 08:42:50 -07:00
|
|
|
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
|
|
|
Date: Thu, 25 Aug 2016 19:26:07 +0200
|
2018-02-22 14:33:49 -08:00
|
|
|
Subject: [PATCH] wined3d: Allow creation of 1d shader views.
|
2016-08-31 08:42:50 -07:00
|
|
|
|
|
|
|
---
|
2018-02-13 13:13:50 -08:00
|
|
|
dlls/wined3d/view.c | 5 +++++
|
|
|
|
1 file changed, 5 insertions(+)
|
2016-08-31 08:42:50 -07:00
|
|
|
|
|
|
|
diff --git a/dlls/wined3d/view.c b/dlls/wined3d/view.c
|
2018-02-22 14:33:49 -08:00
|
|
|
index 05167f4..1eebce6 100644
|
2016-08-31 08:42:50 -07:00
|
|
|
--- a/dlls/wined3d/view.c
|
|
|
|
+++ b/dlls/wined3d/view.c
|
2018-02-13 13:13:50 -08:00
|
|
|
@@ -48,6 +48,11 @@ static GLenum get_texture_view_target(const struct wined3d_gl_info *gl_info,
|
|
|
|
{GL_TEXTURE_RECTANGLE, 0, GL_TEXTURE_RECTANGLE},
|
|
|
|
{GL_TEXTURE_3D, 0, GL_TEXTURE_3D},
|
|
|
|
|
|
|
|
+ {GL_TEXTURE_1D, 0, GL_TEXTURE_1D},
|
|
|
|
+ {GL_TEXTURE_1D, WINED3D_VIEW_TEXTURE_ARRAY, GL_TEXTURE_1D_ARRAY},
|
|
|
|
+ {GL_TEXTURE_1D_ARRAY, 0, GL_TEXTURE_1D},
|
|
|
|
+ {GL_TEXTURE_1D_ARRAY, WINED3D_VIEW_TEXTURE_ARRAY, GL_TEXTURE_1D_ARRAY},
|
|
|
|
+
|
|
|
|
{GL_TEXTURE_2D, 0, GL_TEXTURE_2D},
|
|
|
|
{GL_TEXTURE_2D, WINED3D_VIEW_TEXTURE_ARRAY, GL_TEXTURE_2D_ARRAY},
|
|
|
|
{GL_TEXTURE_2D_ARRAY, 0, GL_TEXTURE_2D},
|
2016-08-31 08:42:50 -07:00
|
|
|
--
|
2018-02-13 13:13:50 -08:00
|
|
|
1.9.1
|
2016-08-31 08:42:50 -07:00
|
|
|
|