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
2e6717ab
Commit
2e6717ab
authored
Sep 22, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Initialize standalone surface parameters.
parent
4f332e61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
surface.c
dlls/wined3d/surface.c
+13
-0
No files found.
dlls/wined3d/surface.c
View file @
2e6717ab
...
...
@@ -2365,6 +2365,19 @@ static void WINAPI IWineD3DSurfaceImpl_BindTexture(IWineD3DSurface *iface) {
glGenTextures
(
1
,
&
This
->
glDescription
.
textureName
);
checkGLcall
(
"glGenTextures"
);
TRACE
(
"Surface %p given name %d
\n
"
,
This
,
This
->
glDescription
.
textureName
);
glBindTexture
(
This
->
glDescription
.
target
,
This
->
glDescription
.
textureName
);
checkGLcall
(
"glBindTexture"
);
glTexParameteri
(
This
->
glDescription
.
target
,
GL_TEXTURE_WRAP_S
,
GL_CLAMP_TO_EDGE
);
checkGLcall
(
"glTexParameteri(dimension, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE)"
);
glTexParameteri
(
This
->
glDescription
.
target
,
GL_TEXTURE_WRAP_T
,
GL_CLAMP_TO_EDGE
);
checkGLcall
(
"glTexParameteri(dimension, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE)"
);
glTexParameteri
(
This
->
glDescription
.
target
,
GL_TEXTURE_WRAP_R
,
GL_CLAMP_TO_EDGE
);
checkGLcall
(
"glTexParameteri(dimension, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE)"
);
glTexParameteri
(
This
->
glDescription
.
target
,
GL_TEXTURE_MIN_FILTER
,
GL_NEAREST
);
checkGLcall
(
"glTexParameteri(dimension, GL_TEXTURE_MIN_FILTER, GL_NEAREST)"
);
glTexParameteri
(
This
->
glDescription
.
target
,
GL_TEXTURE_MAG_FILTER
,
GL_NEAREST
);
checkGLcall
(
"glTexParameteri(dimension, GL_TEXTURE_MAG_FILTER, GL_NEAREST)"
);
}
/* This is where we should be reducing the amount of GLMemoryUsed */
}
else
if
(
This
->
glDescription
.
textureName
)
{
...
...
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