~ubuntu-branches/ubuntu/raring/mesa/raring-proposed

« back to all changes in this revision

Viewing changes to src/mesa/main/drawtex.c

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen, Timo Aaltonen, Maarten Lankhorst
  • Date: 2013-04-16 15:35:32 UTC
  • mfrom: (1.7.15)
  • Revision ID: package-import@ubuntu.com-20130416153532-1u9s6vb32cqryh4x
Tags: 9.1.1-0ubuntu1
[ Timo Aaltonen ]
* Merge from unreleased debian git
  - new upstream release (LP: #1112147, #1164093)
* Revert a commit to fix slow blur on intel.
* vbo-fix-crash.diff: Patch from the stable tree that fixes a crasher
  with shared display lists.

[ Maarten Lankhorst ]
* Add some more patches to fix image copy regressions on nouveau.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include "main/mtypes.h"
29
29
 
30
30
 
31
 
#if FEATURE_OES_draw_texture
32
 
 
33
 
 
34
31
static void
35
32
draw_texture(struct gl_context *ctx, GLfloat x, GLfloat y, GLfloat z,
36
33
             GLfloat width, GLfloat height)
58
55
 
59
56
 
60
57
void GLAPIENTRY
61
 
_mesa_DrawTexf(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height)
 
58
_mesa_DrawTexfOES(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height)
62
59
{
63
60
   GET_CURRENT_CONTEXT(ctx);
64
61
   draw_texture(ctx, x, y, z, width, height);
66
63
 
67
64
 
68
65
void GLAPIENTRY
69
 
_mesa_DrawTexfv(const GLfloat *coords)
 
66
_mesa_DrawTexfvOES(const GLfloat *coords)
70
67
{
71
68
   GET_CURRENT_CONTEXT(ctx);
72
69
   draw_texture(ctx, coords[0], coords[1], coords[2], coords[3], coords[4]);
74
71
 
75
72
 
76
73
void GLAPIENTRY
77
 
_mesa_DrawTexi(GLint x, GLint y, GLint z, GLint width, GLint height)
 
74
_mesa_DrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height)
78
75
{
79
76
   GET_CURRENT_CONTEXT(ctx);
80
77
   draw_texture(ctx, (GLfloat) x, (GLfloat) y, (GLfloat) z,
83
80
 
84
81
 
85
82
void GLAPIENTRY
86
 
_mesa_DrawTexiv(const GLint *coords)
 
83
_mesa_DrawTexivOES(const GLint *coords)
87
84
{
88
85
   GET_CURRENT_CONTEXT(ctx);
89
86
   draw_texture(ctx, (GLfloat) coords[0], (GLfloat) coords[1],
92
89
 
93
90
 
94
91
void GLAPIENTRY
95
 
_mesa_DrawTexs(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height)
 
92
_mesa_DrawTexsOES(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height)
96
93
{
97
94
   GET_CURRENT_CONTEXT(ctx);
98
95
   draw_texture(ctx, (GLfloat) x, (GLfloat) y, (GLfloat) z,
101
98
 
102
99
 
103
100
void GLAPIENTRY
104
 
_mesa_DrawTexsv(const GLshort *coords)
 
101
_mesa_DrawTexsvOES(const GLshort *coords)
105
102
{
106
103
   GET_CURRENT_CONTEXT(ctx);
107
104
   draw_texture(ctx, (GLfloat) coords[0], (GLfloat) coords[1],
133
130
                (GLfloat) coords[3] / 65536.0f,
134
131
                (GLfloat) coords[4] / 65536.0f);
135
132
}
136
 
 
137
 
#endif /* FEATURE_OES_draw_texture */