pidgin/plugins/crazychat/mat_struct.h

Sun, 11 Oct 2009 19:20:44 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Sun, 11 Oct 2009 19:20:44 +0000
changeset 28658
107811b9dda7
parent 15435
4b933b06d75e
child 16238
33bf2fd32108
child 18068
b6554e3c8224
child 20478
46933dc62880
permissions
-rw-r--r--

Swap two lines to fix a crash.

msn_servconn_disconnect can destroy servconn, which makes it crash on the
next line. So reset the idle-handler before going into that function.

#include <GL/gl.h>
#include <GL/glu.h>

typedef struct sample_MATERIAL{
 GLfloat ambient[3];
 GLfloat diffuse[3];
 GLfloat specular[3];
 GLfloat emission[3];
 GLfloat alpha;
 GLfloat phExp;
 int   texture;
}sample_MATERIAL;

mercurial