Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
afeecfd9
Commit
afeecfd9
authored
Aug 26, 2011
by
Matteo Bruni
Committed by
Alexandre Julliard
Aug 29, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Rename dummyTextureName variable.
parent
e46378c7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
context.c
dlls/wined3d/context.c
+3
-3
device.c
dlls/wined3d/device.c
+6
-6
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/context.c
View file @
afeecfd9
...
@@ -1263,7 +1263,7 @@ static void bind_dummy_textures(const struct wined3d_device *device, struct wine
...
@@ -1263,7 +1263,7 @@ static void bind_dummy_textures(const struct wined3d_device *device, struct wine
GL_EXTCALL
(
glActiveTextureARB
(
GL_TEXTURE0_ARB
+
i
));
GL_EXTCALL
(
glActiveTextureARB
(
GL_TEXTURE0_ARB
+
i
));
checkGLcall
(
"glActiveTextureARB"
);
checkGLcall
(
"glActiveTextureARB"
);
glBindTexture
(
GL_TEXTURE_2D
,
device
->
dummy
TextureName
[
i
]);
glBindTexture
(
GL_TEXTURE_2D
,
device
->
dummy
_texture_2d
[
i
]);
checkGLcall
(
"glBindTexture"
);
checkGLcall
(
"glBindTexture"
);
if
(
gl_info
->
supported
[
ARB_TEXTURE_RECTANGLE
])
if
(
gl_info
->
supported
[
ARB_TEXTURE_RECTANGLE
])
...
@@ -1601,7 +1601,7 @@ struct wined3d_context *context_create(struct wined3d_swapchain *swapchain,
...
@@ -1601,7 +1601,7 @@ struct wined3d_context *context_create(struct wined3d_swapchain *swapchain,
/* If this happens to be the first context for the device, dummy textures
/* If this happens to be the first context for the device, dummy textures
* are not created yet. In that case, they will be created (and bound) by
* are not created yet. In that case, they will be created (and bound) by
* create_dummy_textures right after this context is initialized. */
* create_dummy_textures right after this context is initialized. */
if
(
device
->
dummy
TextureName
[
0
])
if
(
device
->
dummy
_texture_2d
[
0
])
bind_dummy_textures
(
device
,
ret
);
bind_dummy_textures
(
device
,
ret
);
LEAVE_GL
();
LEAVE_GL
();
...
@@ -1974,7 +1974,7 @@ void context_bind_texture(struct wined3d_context *context, GLenum target, GLuint
...
@@ -1974,7 +1974,7 @@ void context_bind_texture(struct wined3d_context *context, GLenum target, GLuint
/* nothing to do */
/* nothing to do */
break
;
break
;
case
GL_TEXTURE_2D
:
case
GL_TEXTURE_2D
:
glBindTexture
(
GL_TEXTURE_2D
,
device
->
dummy
TextureName
[
unit
]);
glBindTexture
(
GL_TEXTURE_2D
,
device
->
dummy
_texture_2d
[
unit
]);
checkGLcall
(
"glBindTexture"
);
checkGLcall
(
"glBindTexture"
);
break
;
break
;
case
GL_TEXTURE_RECTANGLE_ARB
:
case
GL_TEXTURE_RECTANGLE_ARB
:
...
...
dlls/wined3d/device.c
View file @
afeecfd9
...
@@ -992,11 +992,11 @@ static void create_dummy_textures(struct wined3d_device *device, struct wined3d_
...
@@ -992,11 +992,11 @@ static void create_dummy_textures(struct wined3d_device *device, struct wined3d_
/* Make appropriate texture active */
/* Make appropriate texture active */
context_active_texture
(
context
,
gl_info
,
i
);
context_active_texture
(
context
,
gl_info
,
i
);
glGenTextures
(
1
,
&
device
->
dummy
TextureName
[
i
]);
glGenTextures
(
1
,
&
device
->
dummy
_texture_2d
[
i
]);
checkGLcall
(
"glGenTextures"
);
checkGLcall
(
"glGenTextures"
);
TRACE
(
"Dummy 2D texture %u given name %u.
\n
"
,
i
,
device
->
dummy
TextureName
[
i
]);
TRACE
(
"Dummy 2D texture %u given name %u.
\n
"
,
i
,
device
->
dummy
_texture_2d
[
i
]);
glBindTexture
(
GL_TEXTURE_2D
,
device
->
dummy
TextureName
[
i
]);
glBindTexture
(
GL_TEXTURE_2D
,
device
->
dummy
_texture_2d
[
i
]);
checkGLcall
(
"glBindTexture"
);
checkGLcall
(
"glBindTexture"
);
glTexImage2D
(
GL_TEXTURE_2D
,
0
,
GL_RGBA8
,
1
,
1
,
0
,
GL_RGBA
,
GL_UNSIGNED_INT_8_8_8_8
,
&
color
);
glTexImage2D
(
GL_TEXTURE_2D
,
0
,
GL_RGBA8
,
1
,
1
,
0
,
GL_RGBA
,
GL_UNSIGNED_INT_8_8_8_8
,
&
color
);
...
@@ -1079,14 +1079,14 @@ static void destroy_dummy_textures(struct wined3d_device *device, const struct w
...
@@ -1079,14 +1079,14 @@ static void destroy_dummy_textures(struct wined3d_device *device, const struct w
checkGLcall
(
"glDeleteTextures(count, device->dummy_texture_rect)"
);
checkGLcall
(
"glDeleteTextures(count, device->dummy_texture_rect)"
);
}
}
glDeleteTextures
(
count
,
device
->
dummy
TextureName
);
glDeleteTextures
(
count
,
device
->
dummy
_texture_2d
);
checkGLcall
(
"glDeleteTextures(count, device->dummy
TextureName
)"
);
checkGLcall
(
"glDeleteTextures(count, device->dummy
_texture_2d
)"
);
LEAVE_GL
();
LEAVE_GL
();
memset
(
device
->
dummy_texture_cube
,
0
,
gl_info
->
limits
.
textures
*
sizeof
(
*
device
->
dummy_texture_cube
));
memset
(
device
->
dummy_texture_cube
,
0
,
gl_info
->
limits
.
textures
*
sizeof
(
*
device
->
dummy_texture_cube
));
memset
(
device
->
dummy_texture_3d
,
0
,
gl_info
->
limits
.
textures
*
sizeof
(
*
device
->
dummy_texture_3d
));
memset
(
device
->
dummy_texture_3d
,
0
,
gl_info
->
limits
.
textures
*
sizeof
(
*
device
->
dummy_texture_3d
));
memset
(
device
->
dummy_texture_rect
,
0
,
gl_info
->
limits
.
textures
*
sizeof
(
*
device
->
dummy_texture_rect
));
memset
(
device
->
dummy_texture_rect
,
0
,
gl_info
->
limits
.
textures
*
sizeof
(
*
device
->
dummy_texture_rect
));
memset
(
device
->
dummy
TextureName
,
0
,
gl_info
->
limits
.
textures
*
sizeof
(
*
device
->
dummyTextureName
));
memset
(
device
->
dummy
_texture_2d
,
0
,
gl_info
->
limits
.
textures
*
sizeof
(
*
device
->
dummy_texture_2d
));
}
}
static
LONG
fullscreen_style
(
LONG
style
)
static
LONG
fullscreen_style
(
LONG
style
)
...
...
dlls/wined3d/wined3d_private.h
View file @
afeecfd9
...
@@ -1722,7 +1722,7 @@ struct wined3d_device
...
@@ -1722,7 +1722,7 @@ struct wined3d_device
struct
wined3d_surface
*
logo_surface
;
struct
wined3d_surface
*
logo_surface
;
/* Textures for when no other textures are mapped */
/* Textures for when no other textures are mapped */
UINT
dummyTextureName
[
MAX_COMBINED_SAMPLERS
];
UINT
dummy_texture_2d
[
MAX_COMBINED_SAMPLERS
];
UINT
dummy_texture_rect
[
MAX_COMBINED_SAMPLERS
];
UINT
dummy_texture_rect
[
MAX_COMBINED_SAMPLERS
];
UINT
dummy_texture_3d
[
MAX_COMBINED_SAMPLERS
];
UINT
dummy_texture_3d
[
MAX_COMBINED_SAMPLERS
];
UINT
dummy_texture_cube
[
MAX_COMBINED_SAMPLERS
];
UINT
dummy_texture_cube
[
MAX_COMBINED_SAMPLERS
];
...
...
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