Update of /cvsroot/openvrml/openvrml/examples
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv20701/examples
Modified Files:
Tag: OpenVRML-0_16-BRANCH
sdl_viewer.cpp
Log Message:
Use the MIME type strings exported by libopenvrml.
Index: sdl_viewer.cpp
===================================================================
RCS file: /cvsroot/openvrml/openvrml/examples/sdl_viewer.cpp,v
retrieving revision 1.10.2.4
retrieving revision 1.10.2.5
diff -C2 -d -r1.10.2.4 -r1.10.2.5
*** sdl_viewer.cpp 6 Dec 2006 01:52:49 -0000 1.10.2.4
--- sdl_viewer.cpp 16 Apr 2007 05:09:47 -0000 1.10.2.5
***************
*** 188,194 ****
const string ext(dot_pos.base(), hash_pos);
if (iequals(ext, "wrl")) {
! media_type = "model/vrml";
} else if (iequals(ext, "x3dv")) {
! media_type = "model/x3d+vrml";
} else if (iequals(ext, "png")) {
media_type = "image/png";
--- 188,194 ----
const string ext(dot_pos.base(), hash_pos);
if (iequals(ext, "wrl")) {
! media_type = openvrml::vrml_media_type;
} else if (iequals(ext, "x3dv")) {
! media_type = openvrml::x3d_vrml_media_type;
} else if (iequals(ext, "png")) {
media_type = "image/png";
|