Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
8afe27da
Commit
8afe27da
authored
Nov 18, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Nov 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix GL_ARB_texture_cube_map extension support.
parent
0beeffa9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
14 deletions
+21
-14
baseshader.c
dlls/wined3d/baseshader.c
+1
-1
cubetexture.c
dlls/wined3d/cubetexture.c
+0
-9
drawprim.c
dlls/wined3d/drawprim.c
+2
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-2
wined3d_gl.h
include/wine/wined3d_gl.h
+18
-0
No files found.
dlls/wined3d/baseshader.c
View file @
8afe27da
...
...
@@ -319,7 +319,7 @@ HRESULT shader_get_registers_used(
reg_maps
->
samplers
[
sampler_code
]
=
(
0x1
<<
31
)
|
WINED3DSTT_VOLUME
;
break
;
case
GL
TEXTURECUBEMAP
:
case
GL
_TEXTURE_CUBE_MAP_ARB
:
reg_maps
->
samplers
[
sampler_code
]
=
(
0x1
<<
31
)
|
WINED3DSTT_CUBE
;
break
;
...
...
dlls/wined3d/cubetexture.c
View file @
8afe27da
...
...
@@ -27,21 +27,12 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
#define GLINFO_LOCATION ((IWineD3DImpl *)(((IWineD3DDeviceImpl *)This->resource.wineD3DDevice)->wineD3D))->gl_info
static
const
GLenum
cube_targets
[
6
]
=
{
#if defined(GL_VERSION_1_3)
GL_TEXTURE_CUBE_MAP_POSITIVE_X
,
GL_TEXTURE_CUBE_MAP_NEGATIVE_X
,
GL_TEXTURE_CUBE_MAP_POSITIVE_Y
,
GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
,
GL_TEXTURE_CUBE_MAP_POSITIVE_Z
,
GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
#else
GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB
,
GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB
,
GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB
,
GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB
,
GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB
,
GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB
#endif
};
/* *******************************************
...
...
dlls/wined3d/drawprim.c
View file @
8afe27da
...
...
@@ -1940,7 +1940,7 @@ static void drawPrimitiveUploadTexturesPS(IWineD3DDeviceImpl* This) {
glDisable
(
GL_TEXTURE_CUBE_MAP_ARB
);
glDisable
(
GL_TEXTURE_2D
);
break
;
case
GL
TEXTURECUBEMAP
:
case
GL
_TEXTURE_CUBE_MAP_ARB
:
glDisable
(
GL_TEXTURE_2D
);
glDisable
(
GL_TEXTURE_3D
);
break
;
...
...
@@ -2005,7 +2005,7 @@ static void drawPrimitiveUploadTextures(IWineD3DDeviceImpl* This) {
glDisable
(
GL_TEXTURE_CUBE_MAP_ARB
);
glDisable
(
GL_TEXTURE_2D
);
break
;
case
GL
TEXTURECUBEMAP
:
case
GL
_TEXTURE_CUBE_MAP_ARB
:
glDisable
(
GL_TEXTURE_2D
);
glDisable
(
GL_TEXTURE_3D
);
break
;
...
...
dlls/wined3d/wined3d_private.h
View file @
8afe27da
...
...
@@ -215,8 +215,6 @@ extern int num_lock;
(vec)[2] = D3DCOLOR_B(dw); \
(vec)[3] = D3DCOLOR_A(dw);
#define GLTEXTURECUBEMAP GL_TEXTURE_CUBE_MAP_ARB
/* DirectX Device Limits */
/* --------------------- */
#define MAX_LEVELS 256
/* Maximum number of mipmap levels. Guessed at 256 */
...
...
include/wine/wined3d_gl.h
View file @
8afe27da
...
...
@@ -208,6 +208,24 @@ typedef void (APIENTRY *WINED3D_PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLf
typedef
void
(
APIENTRY
*
WINED3D_PFNGLMULTITEXCOORD2FARBPROC
)
(
GLenum
target
,
GLfloat
s
,
GLfloat
t
);
typedef
void
(
APIENTRY
*
WINED3D_PFNGLMULTITEXCOORD3FARBPROC
)
(
GLenum
target
,
GLfloat
s
,
GLfloat
t
,
GLfloat
r
);
typedef
void
(
APIENTRY
*
WINED3D_PFNGLMULTITEXCOORD4FARBPROC
)
(
GLenum
target
,
GLfloat
s
,
GLfloat
t
,
GLfloat
r
,
GLfloat
q
);
/* GL_ARB_texture_cube_map */
#ifndef GL_ARB_texture_cube_map
#define GL_ARB_texture_cube_map 1
#define GL_NORMAL_MAP_ARB 0x8511
#define GL_REFLECTION_MAP_ARB 0x8512
#define GL_TEXTURE_CUBE_MAP_ARB 0x8513
#define GL_TEXTURE_BINDING_CUBE_MAP_ARB 0x8514
#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516
#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518
#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851A
#define GL_PROXY_TEXTURE_CUBE_MAP_ARB 0x851B
#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB 0x851C
#endif
/* GL_ARB_point_parameters */
#ifndef GL_ARB_point_parameters
#define GL_ARB_point_parameters 1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment