Evas 3d: Fix typo in previous commit
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 24 Mar 2016 02:08:57 +0000 (11:08 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 24 Mar 2016 02:12:30 +0000 (11:12 +0900)
I didn't reject so I can push this now.

src/modules/evas/engines/gl_common/evas_gl_3d.c

index 2ed971fe6479ca8b55bed65b279eaee0525ea37d..6f0e1ec19e200ce9f233d7a4bfe16ac7b49e285d 100644 (file)
@@ -279,7 +279,8 @@ e3d_texture_filter_get(const E3D_Texture *texture,
      *mag = _to_e3d_texture_filter(texture->filter_mag);
 }
 
-void _gen_texture_2d(GLuint *texture, GLenum wrap_type, GLfloat filter_type)
+static void
+_gen_texture_2d(GLuint *texture, GLenum wrap_type, GLfloat filter_type)
 {
    glGenTextures(1, texture);
    glBindTexture(GL_TEXTURE_2D, *texture);
@@ -289,8 +290,9 @@ void _gen_texture_2d(GLuint *texture, GLenum wrap_type, GLfloat filter_type)
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, filter_type);
 }
 
-void _gen_depth_stensil_buffer(GLuint *buffer, GLenum format, GLenum attach,
-                               int size_w, int size_h)
+static void
+_gen_depth_stencil_buffer(GLuint *buffer, GLenum format, GLenum attach,
+                          int size_w, int size_h)
 {
    glGenRenderbuffers(1, buffer);
    glBindRenderbuffer(GL_RENDERBUFFER, *buffer);
@@ -342,17 +344,17 @@ e3d_drawable_new(int w, int h, int alpha, GLenum depth_format, GLenum stencil_fo
 #else
    if (depth_format == GL_DEPTH24_STENCIL8)
      {
-        _gen_depth_stensil_buffer(&depth_stencil_buf, GL_DEPTH24_STENCIL8,
+        _gen_depth_stencil_buffer(&depth_stencil_buf, GL_DEPTH24_STENCIL8,
                                   GL_DEPTH_STENCIL_ATTACHMENT, w, h);
         depth_stencil = EINA_TRUE;
      }
 #endif
 
    if ((!depth_stencil) && (depth_format))
-     _gen_depth_stensil_buffer(&depth_buf, depth_format, GL_DEPTH_ATTACHMENT, w, h);
+     _gen_depth_stencil_buffer(&depth_buf, depth_format, GL_DEPTH_ATTACHMENT, w, h);
 
    if ((!depth_stencil) && (stencil_format))
-     _gen_depth_stensil_buffer(&stencil_buf, stencil_format, GL_STENCIL_ATTACHMENT, w, h);
+     _gen_depth_stencil_buffer(&stencil_buf, stencil_format, GL_STENCIL_ATTACHMENT, w, h);
 
    if (glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE)
      goto error;